Design comparison
SolutionDesign
Solution retrospective
How to write better js and sass code? Why my deployed app doesn't work correctly?
Community feedback
- @chri55Posted about 4 years ago
Hi Tomy,
If you look in your developer tools console after searching an IP, you may see an error which says "Mixed Content": your
fetch
call is getting data overhttp
, but the app itself is being served onhttps
through Vercel. Change your URL in thefetch
call to usehttps
and it should at least be able to make the call to the API once deployed.0@kulczynskiPosted about 4 years ago@chri55 Thank you, now It works ! :) Can you take a look at my JS code? Can I make in cleaner way?
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord