fix: need to apply cors to tus upload

This commit is contained in:
Derrick Hammer 2024-02-03 19:25:13 -05:00
parent b82353cfa9
commit fd721077e5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}