diff --git a/de-institutions-api/Startup.cs b/de-institutions-api/Startup.cs index 3fb8005..8004c48 100644 --- a/de-institutions-api/Startup.cs +++ b/de-institutions-api/Startup.cs @@ -153,9 +153,13 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService app.UseHttpsRedirection(); app.UseRouting(); - + app.UseAuthentication(); app.UseAuthorization(); + app.UseCors(builder => builder + .AllowAnyMethod() + .AllowAnyHeader()); + app.UseEndpoints(endpoints => { endpoints.MapControllers();