title: didn't get response for XMLHTTPRequest
body: <p>I try to get weather info from a weather API, everything seems to be working fine but I don't know why I don't get any response, the URL is Working   </p>
  
  <pre><code>  //get  Response to weather status based on latitude on longitude positions
      if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(function(position) {
  
              var lat = position.coords.latitude;
              var lon = position.coords.longitude;
              var apiKey = "d64b6f0e97c598ccf0f03718d1690fcc";
              var url = "api.openweathermap.org/data/2.5/weather?lat="
              var URL = url + lat + "&amp;lon=" + lon + "&amp;APPID=" + apiKey;
              console.log(URL);
              var xhr = new XMLHttpRequest();
              xhr.open("GET", URL, true);
              xhr.send();
              xhr.onload = function() {
                  if (xhr.status == 200) {
                      document.getElementById("title").innerHTML = this.responseText;
                  }
              }
          });
  
      } else {
          alert("Error");
      }
  </code></pre>