|
@ -29,7 +29,7 @@ ExpressApp.start = function(opts) { |
|
|
app.use(function(req, res, next) { |
|
|
app.use(function(req, res, next) { |
|
|
res.setHeader('Access-Control-Allow-Origin', '*'); |
|
|
res.setHeader('Access-Control-Allow-Origin', '*'); |
|
|
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, DELETE'); |
|
|
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, DELETE'); |
|
|
res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,Content-Type,Authorization'); |
|
|
res.setHeader('Access-Control-Allow-Headers', 'x-signature,x-identity,X-Requested-With,Content-Type,Authorization'); |
|
|
next(); |
|
|
next(); |
|
|
}); |
|
|
}); |
|
|
var allowCORS = function(req, res, next) { |
|
|
var allowCORS = function(req, res, next) { |
|
|