Guillaume RISCHARD 2014-08-31 03:31:22 +02:00
parent 09395d800d
commit d167c73d02
1 changed files with 1 additions and 1 deletions

View File

@ -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 );