feat(api): don't handle CORS locally

This commit is contained in:
spiral 2022-11-18 01:04:53 +00:00
parent 12323f3662
commit de0d27e514
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -128,7 +128,7 @@ public class Startup
app.UseMiddleware<AuthorizationTokenHandlerMiddleware>();
//app.UseHttpsRedirection();
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization", "sentry-trace"));
// app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization", "sentry-trace"));
app.UseRouting();
app.UseAuthentication();