fix: need to allow Upload-Length through cors

This commit is contained in:
Derrick Hammer 2024-02-03 20:02:11 -05:00
parent 8a1e586b28
commit 6655abe61b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -206,6 +206,8 @@ func BuildS5TusApi(identity ed25519.PrivateKey, accounts *account.AccountService
AllowedHeaders: []string{ AllowedHeaders: []string{
"Authorization", "Authorization",
"Expires", "Expires",
"Upload-Concat",
"Upload-Length",
"Upload-Offset", "Upload-Offset",
"X-Requested-With", "X-Requested-With",
"Tus-Version", "Tus-Version",
@ -213,7 +215,6 @@ func BuildS5TusApi(identity ed25519.PrivateKey, accounts *account.AccountService
"Tus-Extension", "Tus-Extension",
"Tus-Max-Size", "Tus-Max-Size",
"X-HTTP-Method-Override", "X-HTTP-Method-Override",
"Upload-Concat",
}, },
AllowCredentials: true, AllowCredentials: true,
}) })