title: How do I make an Cross Domain Request with Ajax?
body: <p>I've been asked to get some "data" from an xml feed and to add it to a page I am hosting on my server.  I figured I'd use the jQuery Ajax api -- and I'm getting this error.  </p>
  
  <pre><code>XMLHttpRequest cannot load .../3.atom. Origin http://myserver.com is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>Do I need to request access from someone?  Is there something I can add to my request?  I've read stuff about CORS, is that a service I should use in this case?</p>
  
  <p>Here's my code at the moment. </p>
  
  <pre><code>var feedUrl = "http://www.holmanreviews.com/audi-pembroke-pines/3.atom";
  var content;
  
  $.ajax({
      type: "GET",
      url: feedUrl,
      dataType: "xml",
      crossDomain: true,
      success: function (xml) {
          $(xml).find('entry').each(function () {
              var $this = $(this);
              var id = $this.attr('id');
              content += id;
          });
      }
  });
  
  $('#feed').append(content);
  </code></pre>
  
  <p>I have a JS FIddle here as well. <a href="http://jsfiddle.net/rsturim/6nsyX/" rel="nofollow">http://jsfiddle.net/rsturim/6nsyX/</a></p>
  
  <p>Would love some background on this if you can help -- thanks a bunch.</p>