title: Getting networkerror failed to execute 'send' on 'xmlhttprequest' failed to load 'http://rest-service.guides.spring.io/greeting'
body: <p>I'm new at RESTFul requests sending, I tried a simple request to W3Schools <strong>"<a href="http://www.w3schools.com/website/customers_mysql.php" rel="nofollow">http://www.w3schools.com/website/customers_mysql.php</a>"</strong> and it returned successfully, then I tried <a href="https://spring.io/guides/gs/consuming-rest-jquery/" rel="nofollow">this link</a> using this:
  <code></p>
  
  <pre><code>  try {
          var secondReqest = new XMLHttpRequest();
          secondReqest.open("GET", "http://rest-service.guides.spring.io/greeting", false);
          secondReqest.send();
          alert('second reqest sent');
          alert(secondReqest.status);
          alert(secondReqest.statusText);
      } catch (e) {
          alert(e);
      }
  </code></pre>
  
  <p></code></p>
  
  <p>but I'm getting this message:
  <strong>NetworkError: failed to execute 'send' on 'xmlhttprequest' failed to load ' http: //rest-service.guides.spring.io/greeting'.</strong></p>
  
  <p>I tried launching chrome with <strong>allow-file-access-from-files</strong> but it didn't help..</p>
  
  <p>any help why this is happening?, and how to fix it?</p>