fix: force uploads to use auth headers instead of cookie

This commit is contained in:
NGPixel
2022-01-22 19:52:59 -05:00
parent 92fe9d3e31
commit a04f7bd650
2 changed files with 17 additions and 1 deletions

View File

@@ -31,6 +31,10 @@ module.exports = {
if (req && req.cookies) {
token = req.cookies['jwt']
}
// Force uploads to use Auth headers
if (req.path === '/u') {
return null
}
return token
}
])