Browse Source

Cookies are not necessary, disabled credentials

activeAddress
Gustavo Maximiliano Cortez 10 years ago
parent
commit
b052328ad8
  1. 3
      lib/expressapp.js

3
lib/expressapp.js

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

Loading…
Cancel
Save