From d167c73d0241f1f265a061d32f89260f170f9c73 Mon Sep 17 00:00:00 2001 From: Guillaume RISCHARD Date: Sun, 31 Aug 2014 03:31:22 +0200 Subject: [PATCH] Use https://getcontents.herokuapp.com for ssl --- js/level2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );