I don't know if this will help but when using express framework in nodejs I had set headers for all outgoing request from node server for allowing cross domain requests using following syntax: app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});
Here is a link to do similar stuff in apache: https://enable-cors.org/server_apache.html
Now I wont recommend using JSONP but here is the link just if you are curious: https://www.sitepoint.com/jsonp-examples/