Skip to content

Commit

Permalink
allowed cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Signorini committed May 14, 2019
1 parent 0c1ffb9 commit 1302e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/middlewares/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function () {
return function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header('Access-Control-Allow-Methods', "GET,PUT,POST,DELETE,PATCH");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization, Accept-Encoding, Accept-Language");
res.header("Access-Control-Allow-Headers", "*");
next();
};
};

0 comments on commit 1302e61

Please sign in to comment.