express-jwt
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -9,2 +9,9 @@ var jwt = require('jsonwebtoken'); | ||
var token; | ||
if(req.method === 'OPTIONS' && req.headers.hasOwnProperty('access-control-request-headers')) { | ||
if (req.headers['access-control-request-headers'].split(', ').indexOf('authorization') != -1) { | ||
return next(); | ||
} | ||
} | ||
if (req.headers && req.headers.authorization) { | ||
@@ -33,2 +40,2 @@ var parts = req.headers.authorization.split(' '); | ||
}; | ||
}; | ||
}; |
{ | ||
"name": "express-jwt", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "JWT authentication middleware.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7734
137