From fd721077e58bd69b446b4375876acdf40be49191 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 3 Feb 2024 19:25:13 -0500 Subject: [PATCH] fix: need to apply cors to tus upload --- api/s5/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 067ee10..7cc477a 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -198,7 +198,7 @@ func BuildS5TusApi(identity ed25519.PrivateKey, accounts *account.AccountService } // Apply the middlewares to the tusJapeHandler - tusHandler := middleware.ApplyMiddlewares(tusJapeHandler, middleware.AuthMiddleware(identity, accounts), injectJwt, protocolMiddleware, stripPrefix, middleware.ProxyMiddleware) + tusHandler := middleware.ApplyMiddlewares(tusJapeHandler, middleware.AuthMiddleware(identity, accounts), injectJwt, protocolMiddleware, stripPrefix, middleware.ProxyMiddleware, cors.Default().Handler) return tusHandler }