mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Send CORS allowed headers in API response (#114)
Sends Access-Control-Allow-Headers Content-Type and Authorization in the API response headers
This commit is contained in:
parent
a188c64a0e
commit
1c48cb2fc7
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ namespace PluralKit.API
|
||||||
}
|
}
|
||||||
|
|
||||||
//app.UseHttpsRedirection();
|
//app.UseHttpsRedirection();
|
||||||
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin());
|
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization"));
|
||||||
app.UseMiddleware<TokenAuthService>();
|
app.UseMiddleware<TokenAuthService>();
|
||||||
app.UseMvc();
|
app.UseMvc();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue