HTTPS issue on CodePen

Mixed 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.

How can I solve this problem on CodePen?

Here’s my project:

Thank you!

Hey. Just add an “s” to every http you already have (in the HTML and JS panel). Requests from https must be made to another secure connection.

Also, you won’t need the “”; the openweather api can be directly loaded over https (i.e.:


Thank you!
it seems to work, except for something depending on ip-api, I guess.
I’ll try to find out a solution! Thanks a lot for the advice! :slight_smile: