Closed FarhanMuftiHilmy closed 3 years ago
When you load the deployed version of the site, are there any errors is the console?
I think I see the problem... you are using the non-secure URL, so the request is probably getting blocked. Try using HTTPS
instead of HTTP
- const data = await axios.get("http://api.quotable.io/random")
+ const data = await axios.get("https://api.quotable.io/random")
I'm going close this, but feel free to comment if you are still having trouble.
I'm using react axios to call this api, here is the code
it ran perfectly when i ran it locally, but when i deployed it to vercel and visited the site, the quote wasn't showing, any clue?