🐛 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 => app.UseCors(opts =>
opts.SetIsOriginAllowed(_ => true) opts.SetIsOriginAllowed(_ => true)
.WithExposedHeaders("X-Total") .WithExposedHeaders("X-Total", "Location")
.WithHeaders("X-Total") .WithHeaders()
.AllowCredentials() .AllowCredentials()
.AllowAnyHeader() .AllowAnyHeader()
.AllowAnyMethod() .AllowAnyMethod()