Allow Content-Type header to be set for CORS

This commit is contained in:
Andrew Stewart 2014-04-11 19:23:13 -07:00
parent 9e781a2ea1
commit c5428d89ab
1 changed files with 2 additions and 1 deletions

View File

@ -89,8 +89,9 @@ namespace("Cylon", function() {
var master = this.master;
this.server.all("/*", function(req, res, next) {
res.set('Content-Type', 'application/json');
res.set("Access-Control-Allow-Origin", self.opts.CORS || "*");
res.set("Access-Control-Allow-Headers", "Content-Type");
res.set('Content-Type', 'application/json');
return next();
});