I have been building a weather widget with JavaScript.
I use angularjs ($http method:get) to make the api calls.
I have had no problem getting weather information using below API call (my api key is removed)
http://api.openweathermap.org/data/2.5/weather?q=Manchester,uk&appid=xxxxxxxx&units=metric
But when I wanted to switch to a different API (URL below) I get the error
XMLHttpRequest cannot load https://api.forecast.io/forecast/33.499318,-2.234089000000026?units=si. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50301' is therefore not allowed access.
Is this because the second API uses HTTPS? but it doesn't make sense. why was the first api allowed?