fix: need to allow Upload-Length through cors
This commit is contained in:
parent
8a1e586b28
commit
6655abe61b
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue