Openweathermap api has some issues over https

so i have been doing the api local weather project but iam only able
to get a json object only if i do it from http but it gives me and error
if i do it from a https website in this case codepen.

i heard that paying for a subscription will allow one to make secure api calls.

forecast.io has an API that works over https. same story for wunderground.com

2 Likes

THANKS ALOT, that will sure help!

I tried to use forecast.io but it seems the CORS headers are not set:

XMLHttpRequest cannot load https://api.forecast.io/forecast/0e44c6f033f8420db90b63bda452cb6e/51.1628901,4.4732294999999995. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://s.codepen.io' is therefore not allowed access.

I checked and it seems they actually do not set Access-Control-Allow-Origin. Does that mean that forecast.io is not an option?