NearMe 2 - Map not visible due to CORS policy


#1

I’m stuck on step 4 of the NearMe 2 project (https://www.codecademy.com/courses/learn-angularjs/projects/angularjs_nearme-2)

After two days of pounding my head against my keyboard because the map doesn’t appear despite my code being identical to that in the video, I finally saw this error in the console:

Access to XMLHttpRequest at 'https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=5000&gscoord=40.741934%7C-74.004897&gslimit=30&format=json&callback=JSON_CALLBACK' from origin 'https://6pkpair8mlbn7og7220qpesovcmjb34hfvd652grs8pmtihgpui0.cc-propeller.cloud' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

So how do we get around that?