feat(api): don't handle CORS locally
This commit is contained in:
parent
12323f3662
commit
de0d27e514
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user