I am getting the following error message in ionic project, when i execute http get function.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://creator.ionic.io' is therefore not allowed access.
My code is, how do i add the headers to remove such error
var ret = {
all:function(){
var deferred = $q.defer();
$http.get(zones_url).then(function(resp){
console.log(resp);
});
return deferred.promise;
}
}
return ret;
Can anyone advice me please.