DPDK Architecture  ->  Bootstrap (v3.0.5)

CSRF
>= v1.16.0

Simple csrf tokens middleware for Express

Features

  • Adds a req.session.csrf token to the session store
  • Can be used to protect POST routes in combination with forms
  • Includes the default function with configuration from the application config

Bootstrap

Config

No config implemented

Implementation

const csrf = require('./middleware/csrf');

this.server.use(csrf.middleware);

Usage

Config

{
  "csrf": {
    "enabled": false
  }
}

Links

No links available

Last modifiedFriday, April 30, 2021, 12:00:21 PM UTC
Last authorColin van Eenige
Commit ID4c7a701