Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[FIX] add cors allow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
geertweening committed Jan 22, 2015
1 parent 2a1a413 commit 18e52a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/express_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ app.use(bodyParser.json());
app.use(compress());
app.use(function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
res.header('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type');
next();
});
Expand Down

0 comments on commit 18e52a0

Please sign in to comment.