add for allow header for dowload file on client Content-Disposition
This commit is contained in:
@@ -90,6 +90,7 @@ namespace CarParkValidationAPI
|
||||
services.AddScoped<IAdminUser, AdminUserRepository>();
|
||||
services.AddScoped<IConcessionValidation, ConcessionValidationRepository>();
|
||||
services.AddScoped<ILookupCode, LookupCodeRepository>();
|
||||
services.AddScoped(typeof(ConcessionValidationReportRepository));
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
@@ -117,6 +118,8 @@ namespace CarParkValidationAPI
|
||||
.SetIsOriginAllowed(origin => true)
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader()
|
||||
.WithExposedHeaders("Content-Disposition")
|
||||
|
||||
.AllowCredentials());
|
||||
|
||||
// global error handler
|
||||
|
||||
Reference in New Issue
Block a user