Weather reports problem with chrome on Mix content with insecure XMLHttpRequest endpoint

I got erros on Mix content: The page at ‘’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘’. This request has been blocked; the content must be served over HTTPS.send @ jquery-2.2.4.min.js:4

with chrome browser? Any suggestion on how to fix this one will be greatly appreciated.

It’s giving you this error because you’re loading insecure content to a user (you) who has a secure connection to CodePen. It seems like you may have already fixed this by making the AJAX call use HTTPS, but you could also omit the protocol entirely and let the browser use whichever it can at the time:


No, this bug is not fixed. The weather information is not loaded in Chrome.

I keep forgetting that OpenWeather doesn’t allow SSL connections to their API for free accounts. It will never work. You can either put a note on your website telling people to connect over HTTP (not a grand idea), or use something like

Got it. Thanks for your reply!