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;