I have my express server running on http://localhost:3000 (I call this web-server) I have another application running on localhost:8100 (I call this simply \'app\')
I use cors and implement it so, it's very simple
var cors=require('cors');
app.use(cors({origin:true,credentials: true}));