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.

https://codepen.io/nimaiwalsh/pen/QERqRv?editors=1111

Any help would be greatly appreciated.

Kind regards,

Nimai

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

Add https://crossorigin.me/ to url:

url = "https://crossorigin.me/https://api.forecast.io/forecast/deff4dbff9bda84749e37c93d6e81d73/" + 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.