I’m working on the weather app, but codepen is giving me constant errors depending on the situation when trying to pull data from OpenWeather API relating to HTTPS connections when trying to use $.getJSON.
When I go to https://codepen and call openweather with https, I get “Failed to load resource: net::ERR_CONNECTION_REFUSED”
When I go to non https codepen and call openweather with https, I get “getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See [Google Link] for more details.”
When I go to https://codepen and call openweather with non https, I get “GET [Codepen Boomerang URL] 404 ()”
I read basically every SO question I could find, and none of them were able to help me. The URL that I’m working with gives me the JSON I want when pasted into the browser. I’m using Chrome 55 (64 Bit). Any help will be greatly appreciated.