🐛 Fix TUS broken for the web cause by the CORS policy
This commit is contained in:
parent
b8341734df
commit
f96de0d325
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user