# OpenWeather App Https JSON Request Security Issues

**URL:** <https://forum.freecodecamp.org/t/openweather-app-https-json-request-security-issues/68899>\
**Category:** General\
**Created:** [December 25, 2016, 12:52am UTC](https://forum.freecodecamp.org/t/openweather-app-https-json-request-security-issues/68899 "2016-12-25T00:52:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrickSpades](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@TrickSpades](https://forum.freecodecamp.org/u/TrickSpades)\
**Post date:** [December 25, 2016, 12:52am UTC](https://forum.freecodecamp.org/t/openweather-app-https-json-request-security-issues/68899/1 "2016-12-25T00:52:47Z")

</div>

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.

1. When I go to [https://codepen](https://codepen) and call openweather with https, I get “Failed to load resource: net::ERR\_CONNECTION\_REFUSED”

2. 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.”

3. When I go to [https://codepen](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.

EDIT: [https://codepen.io/trickspades/pen/pNBGYE](https://codepen.io/trickspades/pen/pNBGYE)

---

<div class="post-metadata">

**Author:** ![TrickSpades](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@TrickSpades](https://forum.freecodecamp.org/u/TrickSpades)\
**Post date:** [December 25, 2016, 6:02am UTC](https://forum.freecodecamp.org/t/openweather-app-https-json-request-security-issues/68899/2 "2016-12-25T06:02:58Z")

</div>

Okay it turns out OpenWeather is ass. When I switched to [forecast.io](http://forecast.io), I got it working in less than 20min. I also didn’t have to convert the temp from Kelvin 🙂

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 6:11am UTC](https://forum.freecodecamp.org/t/openweather-app-https-json-request-security-issues/68899/3 "2021-01-16T06:11:11Z")

</div>


