Local Weather App help needed

Hi, I’m just getting started with the local weather app project and am having with calling the api. Ive tried for darksky and openweathermap and have even followed a youtube video yet no luck.
Can someone point out the problem to me?


If you are using Chrome you can goto Developer Tools and click on Console and see the following message.

XMLHttpRequest cannot load https://api.darksky.net/forecast/2913b5b8b15ba38b41436cf621858154/37.8267,-122.4233. 
No 'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'https://s.codepen.io' is therefore not allowed access.
1 Like