Weather app problem with api

Weather app problem with api
0

#1

Hello campers
I am doing the weather app project now. I used FCC weather API at first, which worked fine.
But I want to practice with other API, therefore I changed to dark sky API and then I stuck…,
I have checked for dark sky API issue from other campers but still can’t figure it out myself.
Before with Fcc weather API I can show my location and temp successfully but now it’s not working with dark sky API.
I don’t know where I got it wrong.
Would someone help me to take a look at my code? Thanks a lot!!


#2

Well…I just found the solution after a while I posted this.
just need to add https://cors-anywhere.herokuapp.com/ before the URL.