What am I missing? [JSON - Weather App]

What am I missing? [JSON - Weather App]
0.0 0

#1

I can’t think of anything I’m specifically doing wrong, it’s not even getting as far as the alert function.


#2

This is common problem in chrome

P.S. Your code works in Firefox


#3

Use http://ip-api.com/json for your location instead, it will work in Chrome no problem.


#4

Blasted Google Chrome!


#5

To get around this problem when using chrome is to set codepen to https and use https://crossorigin.me in front of your open weather map api url. Good luck!