fix(api): allow 'sentry-trace' header in CORS
This commit is contained in:
parent
8629e38edd
commit
6295a1a561
@ -163,7 +163,7 @@ public class Startup
|
||||
app.UseMiddleware<AuthorizationTokenHandlerMiddleware>();
|
||||
|
||||
//app.UseHttpsRedirection();
|
||||
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization"));
|
||||
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization", "sentry-trace"));
|
||||
|
||||
app.UseRouting();
|
||||
app.UseAuthentication();
|
||||
|
Loading…
Reference in New Issue
Block a user