Api question in show local weather and random quote generator [Solved]

Api question in show local weather and random quote generator [Solved]
0

#1

Hi guys,

I have been working on the show local weather and random quote generator. I have used the api and it’s working. However, after a couple of days latter, the api don’t work and nothing shows up on my project.

I’m wondering whether anyone knows what happens. I totally have no idea what’s going on.
Any suggestion will be appreciated.

Thanks,
Meng


#2

Usually when you encounter this problem it means you have accidentally switched http/s protocols.

If you are on codepen’s https version, but your APIs are hosted on http, they will cause problems. (And vice-versa, I think).


#3

You’re right. Solve it. Thank you very much, Jackson.