fix(api): allow 'sentry-trace' header in CORS

This commit is contained in:
spiral 2022-04-07 09:23:14 -04:00
parent 8629e38edd
commit 6295a1a561
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -163,7 +163,7 @@ public class Startup
app.UseMiddleware<AuthorizationTokenHandlerMiddleware>(); app.UseMiddleware<AuthorizationTokenHandlerMiddleware>();
//app.UseHttpsRedirection(); //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.UseRouting();
app.UseAuthentication(); app.UseAuthentication();