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 @@