1//The Problem is caused by Cross-origin (CORS)
2//make sure you allow the origin you want your app to connect with:
3Access-Control-Allow-Origin = "domain.com"
4
5//or to allow all
6Access-Control-Allow-Origin = "*"
7
8
9//node js
10app.use(function(req, res, next) {
11 res.header("Access-Control-Allow-Origin", "*");
12 res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
13 next();
14});