diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-15 09:17:17 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-15 09:17:17 +0100 |
| commit | 38b3faf1faa645258044201ab8d7429c84bb2b98 (patch) | |
| tree | 8a35569a4aef9736f676f564a4e7b8b847d5fc3e /bucky/app/index.js | |
| parent | ead7e4c6b383f53c2beb66f29510a457dc0b6ed8 (diff) | |
fuck csrf
Diffstat (limited to 'bucky/app/index.js')
| -rw-r--r-- | bucky/app/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
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()) |
