Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Mobile first IP Address Tracker using flexbox and JS

@brandonmharrington

Desktop design screenshot for the IP Address Tracker coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


Could anyone explain to me why the site works locally but doesn't work once hosted to GH Pages? I have noticed others' solutions have the same effect. Does it have to do with the API Key? I see CORS request did not succeed in the console when the page loads and it tries to get the client's IP Address.

Community feedback

@poppa

Posted

It seems to work when I visit the site, but there are shit loads of warning from the map since the map tiles are loaded over HTTP while the site is served over HTTPS. (Mixed content warning)

Just change the line https://github.com/brandonmharrington/ip-address-tracker/blob/d70c6b56755bc7b4821cb83fa267086304f4938e/script.js#L78 to use the HTTPS version to solve that.

0

@brandonmharrington

Posted

@poppa Appreciate the feedback! Looks like my adblocker was preventing the map from loading on my end (facepalm). I will update that line to fix the mixed content warnings!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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