title: localhost and cross domain request
body: <p>I'm trying to understand JSONP and when to use it.  I wrote the below code and am able to get data back from the service call, why doesn't it get blocked?  As I'm running it from my local machine, trying to request data from another machine, shouldn't that violate the Same Origin policy?  I'm not using JSONP below, so I thought this would get blocked.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;script src="Scripts/jquery-2.1.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      $.ajax({
          url: 'https://api.github.com/users/robconery',
          type: 'GET',
          data: "",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (data) {
              $("#name").text(data.login);
          }
      });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;span id="name"&gt;&lt;/span&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>