summaryrefslogtreecommitdiff
path: root/bucky/app/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-15 09:17:17 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-15 09:17:17 +0100
commit38b3faf1faa645258044201ab8d7429c84bb2b98 (patch)
tree8a35569a4aef9736f676f564a4e7b8b847d5fc3e /bucky/app/index.js
parentead7e4c6b383f53c2beb66f29510a457dc0b6ed8 (diff)
fuck csrf
Diffstat (limited to 'bucky/app/index.js')
-rw-r--r--bucky/app/index.js10
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())