I have been searching hours on this issue, but I still can\'t find any solution to this.
I am developping an App cordova (basicely HTML / JS) So : the app runs on mob
I have added following in nodejs server which solves my issue;
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();
});
This may be helpful if you are using nodejs.
Thanks