|
|
@ -27,8 +27,7 @@ ExpressApp.start = function(opts) { |
|
|
|
WalletService.initialize(opts.WalletService); |
|
|
|
var app = express(); |
|
|
|
app.use(function(req, res, next) { |
|
|
|
res.setHeader('Access-Control-Allow-Origin', req.headers.origin); |
|
|
|
res.setHeader('Access-Control-Allow-Credentials', 'true'); |
|
|
|
res.setHeader('Access-Control-Allow-Origin', '*'); |
|
|
|
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, DELETE'); |
|
|
|
res.setHeader('Access-Control-Allow-Headers', 'x-signature,x-identity,X-Requested-With,Content-Type,Authorization'); |
|
|
|
next(); |
|
|
|