🐛 Fix TUS broken for the web cause by the CORS policy

This commit is contained in:
LittleSheep 2025-06-08 23:57:13 +08:00
parent b8341734df
commit f96de0d325

View File

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