Allow Content-Type header to be set for CORS
This commit is contained in:
parent
9e781a2ea1
commit
c5428d89ab
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue