creat 안드로이드 앱이 내 사이트 부엉 json api에서 작동하지만 내 브라우저에서 문제가 하나 있습니다.angular.js json이 작동하지 않는다
$http.get('http://api.geosvc.com/rest/US/84606/nearby?apikey=4ff687893a7b468cb520b3c4e967c4da&d=20&pt=PostalCode&format=json')
.success(function(response){
angular.forEach(response.data.children,function(child){
$scope.stories.push(child.data);
});
이 크롬에서 내 문제입니다 : app.js 내 대구는
가은 XMLHttpRequest htttp를로드 할 수 없습니다 : //api.geosvc.com/rest/US/84606/ 근처에? apikey = 4ff687893a7b468cb520b3c4e967c4da & d = 20 & pt = PostalCode & 형식 = json. 요청한 리소스에 'Access-Control-Allow-Origin'헤더가 없습니다. 따라서 'http://192.168.1.38:8100'은 액세스가 허용되지 않습니다. ? ionicplatform = IOS : 1
행복 도움이 ... :)
정말로 내 문제가 해결되었습니다 :) –
@mohammadyaghooi 답변을 수락 한 것으로 표시해 주시겠습니까? –