Xmlhttpload to wikipedia not allowed


#1

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

codecademy6100368-29400.ccterminalcloud.com/:
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..

Thanks


#2

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


#3

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