docs/middleware/csrf.js

5 строки
128 B
JavaScript

module.exports = require('csurf')({
cookie: require('../lib/cookie-settings'),
ignoreMethods: ['GET', 'HEAD', 'OPTIONS']
})