csrfwhitelist

connect CSRF protection middleware with white list

npm install csrfwhitelist
3 downloads in the last week
12 downloads in the last month

connect CSRF protection middleware with white list

sometimes we want csrf protection but pass white list intended

usage with express 3:

app.use(express.csrf({value: new require('CsrfWhiteList')(['/path1', '/path2'])}));

then, request which path match the given white list will pass the csrf protection without _crsf token

enjoy..

npm loves you