fix: need to allow Authorization through cors

This commit is contained in:
Derrick Hammer 2024-02-03 19:58:17 -05:00
parent 5784afe064
commit 130abe6098
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ func BuildS5TusApi(identity ed25519.PrivateKey, accounts *account.AccountService
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PATCH", "DELETE", "HEAD", "OPTIONS"},
AllowedHeaders: []string{
"Authorization",
"Upload-Offset",
"X-Requested-With",
"Tus-Version",