Closed ninjatux closed 10 years ago
Hi all, i'm building an express 4.* application and I there are some incompatibilities with lusca due the changes made in the framework.
lusca
I've noticed that for using the csrf functionality you need to do the following changes to the express app:
csrf
var express = require('express'), session = require('express-session'), lusca = require('lusca'), app = express(); app.use(session({secret: 'my secret', key: 'sid', cookie: {secure: true}})); app.use(lusca.csrf());
Can we update the readme to provide also infos about express 4.* compatibility?
Hi all, i'm building an express 4.* application and I there are some incompatibilities with
lusca
due the changes made in the framework.I've noticed that for using the
csrf
functionality you need to do the following changes to the express app:Can we update the readme to provide also infos about express 4.* compatibility?