Xmlhttpload to wikipedia not allowed


my code stuck at app NearMeApp, i has check in my console f12 at my browser and got error :

1 XMLHttpRequest cannot load https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=5000&gscoord=40.741934%7C-74.004897&gslimit=30&format=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://codecademy6100368-29400.ccterminalcloud.com' is therefore not allowed access.

how i can get fix it..



sorry, this my bad.. i use $http.get not $http.jsonp .. this error solve...


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.