From 5f7d48a7f9dae3f91dfeef7962ea25a4bac5d851 Mon Sep 17 00:00:00 2001 From: gaba Date: Wed, 4 Jan 2017 13:17:16 -0300 Subject: [PATCH] This was not needed. --- app.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app.js b/app.js index 7a05f81df..d230596c0 100644 --- a/app.js +++ b/app.js @@ -72,13 +72,6 @@ app.use(session(session_opts)); app.use(cookieParser()); -app.use((err, req, res, next) => { - if (req.method === 'POST' || req.method === 'PUT' || req.method === 'DELETE') { - res.locals._csrf = req.csrfToken(); - } - next(); -}); - //============================================================================== // PASSPORT MIDDLEWARE //==============================================================================