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{
"Authorization",
"Expires",
"Upload-Concat",
"Upload-Length",
"Upload-Offset",
"X-Requested-With",
"Tus-Version",
@ -213,7 +215,6 @@ func BuildS5TusApi(identity ed25519.PrivateKey, accounts *account.AccountService
"Tus-Extension",
"Tus-Max-Size",
"X-HTTP-Method-Override",
"Upload-Concat",
},
AllowCredentials: true,
})