krakenjs / lusca

Application security for express apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSRF token missing at app.use(lusca.csrf())

darklight147 opened this issue · comments

app.use((req, res, next) => { if (req.path === '/api/upload') { // Multer multipart/form-data handling needs to occur before the Lusca CSRF check. next(); } else { /lusca.csrf()(req, res, next); // <-- error here } });