From b052328ad86c4d5b063273f7bf2a3ff23ccffd58 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Sat, 7 Mar 2015 15:59:01 -0300 Subject: [PATCH] Cookies are not necessary, disabled credentials --- lib/expressapp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/expressapp.js b/lib/expressapp.js index db9862d..337a58f 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -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();