title: XMLHttpRequest cannot load an URL with jQuery
body: <p>I'm trying to get some json data from a "remote" website.
  I run my web service on the 99000 port then, I launch my website on the 99001 port (http://localhost:99001/index.html).</p>
  
  <p>I get the following message:</p>
  
  <pre><code>    XMLHttpRequest cannot load http://localhost:99000/Services.svc/ReturnPersons. Origin http://localhost:99001 is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>Even If I launch my web page as an HTML file, I get this:</p>
  
  <pre><code>    XMLHttpRequest cannot load http://localhost:99000/Services.svc/ReturnPersons.Origin null is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>The web service returns data. I try to catch the data items like this:</p>
  
  <pre><code>var url = "http://localhost:99000/Services.svc/ReturnPersons";
  $.getJSON(url, function (data) {
  success: readData(data)
  });
  function readData(data) {
      alert(data[0].FirstName);
  }
  </code></pre>
  
  <p>And I'm trying to get this structure:</p>
  
  <pre><code>[{"FirstName":"Foo","LastName":"Bar"},{"Hello":"Foo","LastName":"World"}]
  </code></pre>
  
  <p>Do you know why I'm getting this error?</p>