All applications with ajax requests on imtqy.com give an "Mixed content" error. For example: https://zzharuk.imtqy.com/local_weather_widget/

function getWeather(location, value, callback) { var url = "http://api.openweathermap.org/data/2.5/weather"; $.ajax({ dataType: "jsonp", url: url, jsonCallback: 'jsonp', data: { appid:"3556435b983a95646ad9cab4a5ee0943", units: value, lat:location.latitude, lon:location.longitude }, cache: false, success: function (data) { callback(data); } }); } function LocalWeather() { $.ajax({ url: '//freegeoip.net/json/', type: 'GET', dataType: 'jsonp', success: function (location) { getWeather(location,"metric",function (data) { console.log(location); console.log(data); }) } }) } 
  • one
    Solved a problem through proxy - Alexander Zharuk
  • 2
    If possible, publish the solution found in response to your question . I am sure it will help many of your colleagues in the future. - Nicolas Chabanovsky

0