NearMe 2 - Map not visible due to CORS policy


I’m stuck on step 4 of the NearMe 2 project (

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 '' from origin '' 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?