Weather App - Problem with obtaining data using .getJSON

Hey everyone.

I have spent the whole day on this project, I just can’t seem to access the required JSON file, if I put the URL directly into my browser I can see the required JSON file, however if you look at my code I can’t seem to access the data.

Any help would be greatly appreciated.

Kind regards,


Change codepen’s address url to https://codepen...

Add to url:

url = "" + lat + ',' + long + '?units=auto';

Thanks alot @jenovs - The crossorigin proxy worked. Still unsure exactly what it does. I will have to do a bit more research.