From 7fcbab2aac464ba3accaec410dfe1554efc05186 Mon Sep 17 00:00:00 2001 From: Chris Brame Date: Mon, 17 Jul 2017 17:55:44 -0400 Subject: [PATCH] Temporary Hotfix for Bug #26 --- src/controllers/install.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/install.js b/src/controllers/install.js index 184c5b04b..eb3830252 100644 --- a/src/controllers/install.js +++ b/src/controllers/install.js @@ -37,6 +37,11 @@ installController.mongotest = function(req, res) { if (req.secure) host = 'https://' + host; if (!req.secure) host = 'http://' + host; + //Firefox Hack - Firefox Bug 1341689 + //Trudesk Bug #26 + //TODO: Fix this once Firefox fixes its Origin Header in same-origin POST request. + if (!origin) origin = host; + if (origin !== host) return res.status(400).json({success: false, error: 'Invalid Origin!'}); var data = req.body;