I trying to do a $http GET call from my ionic app . It alway getting me an error.
$http({
withCredentials: true,
method: 'GET',
url : 'http://google.com'
}).success(function(data, status, headers, config) {
console.log("Authentication success" + data);
})
.error(function(data, status, headers, config) {
console.log("Authentication error");
});
I looked at a code pen example http://codepen.io/pliablepixels/pen/mJxROZ?editors=101 it works perfectly for the https://api.myjson.com/bins/30vuu but if i change it to google.com it fails.
Can someone please help solve this.