# Issue with the "Show local weather" project

**URL:** <https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371>\
**Category:** General\
**Created:** [July 1, 2017, 1:43pm UTC](https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371 "2017-07-01T13:43:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JayV3e](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@JayV3e](https://forum.freecodecamp.org/u/JayV3e)\
**Post date:** [July 1, 2017, 1:43pm UTC](https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371/1 "2017-07-01T13:43:28Z")

</div>

Taken from CodePen website :

> What Will Change  
> Beginning June 1, 2017:

> Every page on CodePen will be served over HTTPS.  
> Requests that come in over HTTP will be redirected to HTTPS.  
> We’ll attempt to request an HTTPS version of any content linked via HTTP. If an HTTPS version is available, we’ll load that content over HTTPS. If not, the content may fail to load (more details below).

Therefore we cannot use the second method proposed on freecodecamp :

> Or:

> Use an Internet Protocol API to get user location (ex. IP-API) and then use the OpenWeatherMap API for the weather. Be sure to connect to [CodePen.io](http://CodePen.io) via http://.

Correct me if I’m wrong.

---

<div class="post-metadata">

**Author:** ![fortMaximus](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fortmaximus/32/50137_2.png) [@fortMaximus](https://forum.freecodecamp.org/u/fortMaximus)\
**Post date:** [July 1, 2017, 1:45pm UTC](https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371/2 "2017-07-01T13:45:23Z")

</div>

Yes, you’re correct.

---

<div class="post-metadata">

**Author:** ![JayV3e](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@JayV3e](https://forum.freecodecamp.org/u/JayV3e)\
**Post date:** [July 1, 2017, 1:49pm UTC](https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371/3 "2017-07-01T13:49:56Z")

</div>

I was getting a cross-origin error while using the other option :

> Use HTML5 Geolocation to get user location and then use the Dark Sky API which uses an HTTP Secure connection for the weather. Also, be sure to connect to [CodePen.io](http://CodePen.io) via https://.

Managed to work around it by adding “[https://crossorigin.me/](https://crossorigin.me/)” before the actual api request path.

I think this is would be useful information for campers.

---

<div class="post-metadata">

**Author:** ![JayV3e](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@JayV3e](https://forum.freecodecamp.org/u/JayV3e)\
**Post date:** [July 1, 2017, 1:56pm UTC](https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371/4 "2017-07-01T13:56:19Z")

</div>

Made this is issue on gitub.

> <https://github.com/freeCodeCamp/freeCodeCamp/issues/15576>

Cheers

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:49pm UTC](https://forum.freecodecamp.org/t/issue-with-the-show-local-weather-project/133371/5 "2021-01-17T20:49:08Z")

</div>


