csrfwhitelist

0.0.3 • Public • Published

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..

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i csrfwhitelist

Weekly Downloads

3

Version

0.0.3

License

none

Last publish

Collaborators

  • lodengo