Predicate MissingCsrfMiddleware::csrfMiddlewareCreation

Gets an expression that creates a route handler which protects against CSRF attacks.

Any route handler registered downstream from this type of route handler will be considered protected.

For example:

let csurf = require('csurf');
let csrfProtector = csurf();

app.post('/changePassword', csrfProtector, function (req, res) {
  // protected from CSRF
})
CallNode csrfMiddlewareCreation()