diff --git a/src/index.ts b/src/index.ts index 1b185da1..11d88021 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ export const expressjwt = (options: Params) => { if (req.method === 'OPTIONS' && 'access-control-request-headers' in req.headers) { const hasAuthInAccessControl = req.headers['access-control-request-headers'] .split(',') - .map(header => header.trim()) + .map(header => header.trim().toLowerCase()) .includes('authorization'); if (hasAuthInAccessControl) { return next();