res.setHeader('Access-Control-Allow-Origin',req.headers.origin); res.header('Access-Control-Allow-Credentials', true);https://stackoverflow.com/questions/24897801/enable-access-control-allow-origin-for-multiple-domains-in-nodejs