https://github.com/aspnetzero/aspnet-zero-core/issues/3441 link error! I can't open this link. 404 error
Oh, we did nothing, just downloaded and compiled the template project and the UI shows wrong.
<p-fileUpload multiple="multiple" id="DefaultFileUploadFileInput" name="DefaultFileUploadFileInput[]" [url]="uploadUrl" accept="image/*" maxFileSize="1000000" (onUpload)="onUpload($event)" (onBeforeSend)="onBeforeSend($event)">
<ng-template pTemplate="content"> <ul *ngIf="uploadedFiles.length"> <li *ngFor="let file of uploadedFiles">{{file.name}} - {{file.size}} bytes</li> </ul> </ng-template> </p-fileUpload>
I can run the Angular client and serverapi ok. When I publish the webhost。I can‘t open angular client. services.AddCors(options => { options.AddPolicy(DefaultCorsPolicyName, builder => {
builder.AllowAnyOrigin()
.AllowAnyHeader()
.AllowAnyMethod();
});
});
I have allow all CORS.