diff --git a/server/helpers/security.js b/server/helpers/security.js index c138ada1..e45ee32c 100644 --- a/server/helpers/security.js +++ b/server/helpers/security.js @@ -32,7 +32,7 @@ module.exports = { token = req.cookies['jwt'] } // Force uploads to use Auth headers - if (req.path === '/u') { + if (req.path.toLowerCase() === '/u') { return null } return token