$http({
method: 'GET',
url: $scope.geoURL,
}).success( function(response) {
window.alert("3.");
$scope.resp = response;
window.alert("3."+response.status);
}).error(function (){
window.alert("-3");
});
Causes the following problem:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://175.107.196.142/search/getPlaceInfoForLocation_v0.0.php?lat=33.541404&lng=73.146358. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
This is not a problem with the browser, same url is being called perfectly when directly called from the browser.