Skip to content

Commit

Permalink
Merge branch 'hotfix/0.1.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jul 17, 2017
2 parents 9c2662d + 7fcbab2 commit e450fbf
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 e450fbf

Please sign in to comment.