Design comparison
Solution retrospective
Tell me if my code was written standardly? Am doing this after a long time. So any mistakes I did in style or using any functions tell me.
Community feedback
- @tedikoPosted over 3 years ago
Hello, Suryansh Goyal! 👋
Good job on this challenge! There is a problem on Firefox tho. Your console throws an CORS error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https (Reason: CORS request did not succeed).
I am currently trying to finish this challenge and I encountered this problem too. Read about this CORS error. The fix is to send your request to a proxy. A proxy acts as an intermediary between a client and server. The proxy server operates in between the frontend web app making the request, and the server that responds with data. Addhttps://cors.bridged.cc/
to any URL you’re fetching from. In your example it will be:https://cors.bridged.cc/https://geo.ipify.org/api/v1?apiKey=yourapikey
.Good luck with that, have fun coding! 💪
3
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