mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(api): don't handle CORS locally
This commit is contained in:
parent
12323f3662
commit
de0d27e514
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue