From a50679fa24954e08688cb3707fc89def3416e522 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 5 Mar 2018 11:31:54 -0500 Subject: [PATCH] remove csrf stuff --- apiProxyMiddleware.js | 2 +- package.json | 2 +- public/index.html | 2 +- src/components/LoginForm.js | 6 ------ views/layouts/_templates.html.erb | 2 +- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apiProxyMiddleware.js b/apiProxyMiddleware.js index 594e5f6c..00cdd517 100644 --- a/apiProxyMiddleware.js +++ b/apiProxyMiddleware.js @@ -1,7 +1,7 @@ const request = require('request') function apiProxyMiddleware (req, res, next) { - if (!(req.xhr || req.originalUrl.indexOf('.json') > -1)) { + if (!(req.xhr || req.originalUrl.indexOf('.json') > -1 || req.method !== 'GET')) { return next() } console.log('xhr request', req.originalUrl) diff --git a/package.json b/package.json index 3faf0540..6300145d 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "homepage": "https://github.com/metamaps/metamaps#readme", "dependencies": { - "action-cable-node": "^1.2.2", + "action-cable-node": "Connoropolous/action-cable-node", "ajaxq": "0.0.7", "async": "2.5.0", "attachmediastream": "2.0.0", diff --git a/public/index.html b/public/index.html index 75851710..0390f628 100644 --- a/public/index.html +++ b/public/index.html @@ -193,7 +193,7 @@