fix: force uploads to use auth headers instead of cookie

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

No files matched your search

+4
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
}
])