Hi guys im currently working on the FCC weather app im using the darksky api i have already created a key. I have tried getting the api using jquery but it does not work but when i try it in the browser it works can someone help me please, here’s the link to the project https://codepen.io/wise10000/pen/zzQjgW
You should proxy your HTTP request.
Add https://cors-everywhere.herokuapp.com
to your request address:
$.getJSON('https://cors-everywhere.herokuapp.com/https://api.darksky.net/forecast...'
...
@SkyC thanks mate it worked like a charm .