Closed Priccc closed 5 years ago
when my blacklist is [ '/a', '/b ] and my request is '/a', the blacklist is not working
in csrf.js file
if (blacklist) { blacklist.some(function (exclusion) { shouldBypass = req.path.indexOf(exclusion) === 0; }); } if (whitelist) { whitelist.some(function (inclusion) { shouldBypass = req.path.indexOf(inclusion) !== 0; }); }
i think Array.some() use error And should like this
Array.some()
if (blacklist) { shouldBypass = blacklist.some(function (exclusion) { return req.path.indexOf(exclusion) === 0; }); } if (whitelist) { shouldBypass = whitelist.some(function (inclusion) { return req.path.indexOf(inclusion) !== 0; }); }
And then passed!!
Same as #121 , merging that one
when my blacklist is [ '/a', '/b ] and my request is '/a', the blacklist is not working
in csrf.js file
i think
Array.some()
use error And should like thisAnd then passed!!