From 38b3faf1faa645258044201ab8d7429c84bb2b98 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 15 Dec 2017 09:17:17 +0100 Subject: fuck csrf --- bucky/app/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bucky/app') diff --git a/bucky/app/index.js b/bucky/app/index.js index 63a285d..29017b1 100644 --- a/bucky/app/index.js +++ b/bucky/app/index.js @@ -55,12 +55,12 @@ site.init = function(){ })) upload.init() - federate.route(app) +// federate.route(app) - app.use(csurf({ - cookie: true, - value: (req) => { req.headers['csrf-token'] } - })) +// app.use(csurf({ +// cookie: true, +// value: (req) => { req.headers['csrf-token'] } +// })) app.disable('x-powered-by') app.use(express.query()) -- cgit v1.2.3-70-g09d2