From 6655abe61b1babd1b08eef940afcc98224a71e3b Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 3 Feb 2024 20:02:11 -0500 Subject: [PATCH] fix: need to allow Upload-Length through cors --- api/s5/s5.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index b469f05..1255d40 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -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, })