add for allow header for dowload file on client Content-Disposition

This commit is contained in:
Kham
2021-08-23 17:08:27 +10:00
parent d90e73dfcc
commit 4792acea76
6 changed files with 123 additions and 7 deletions
+3
View File
@@ -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