Skip to content

Commit

Permalink
Temporary Hotfix for Bug #26
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jul 17, 2017
1 parent 9c2662d commit 7fcbab2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fcbab2

Please sign in to comment.