🐛 Fix CORS expose headers

This commit is contained in:
LittleSheep 2025-06-09 20:31:20 +08:00
parent eef64df81a
commit 0c48694493

View File

@ -291,7 +291,7 @@ app.UseForwardedHeaders(new ForwardedHeadersOptions
app.UseCors(opts =>
opts.SetIsOriginAllowed(_ => true)
.WithExposedHeaders("X-Total", "Location")
.WithExposedHeaders("*")
.WithHeaders()
.AllowCredentials()
.AllowAnyHeader()