diff --git a/js/level2.js b/js/level2.js index 185961e..659271c 100644 --- a/js/level2.js +++ b/js/level2.js @@ -142,7 +142,7 @@ function loadWeather() { var request = $.ajax({ type: 'get', // fixme: use an api that supports https - url: 'http://api.openweathermap.org/data/2.5/weather?units=metric&q=' + city + ',' + country + '&appid=' + appid, + url: 'https://getcontents.herokuapp.com/?url=http://api.openweathermap.org/data/2.5/weather?units=metric&q=' + city + ',' + country + '&appid=' + appid, complete: function( response ) { data = JSON.parse( response.responseText );