title: Setting Access-Control-Allow-Origin header on source server
body: <p>I am using <code>$.get</code> to parse an RSS feed in jQuery with code similar to this:</p>
  
  <pre><code>$.get(rssurl, function(data) {
      var $xml = $(data);
      $xml.find("item").each(function() {
          var $this = $(this),
              item = {
                  title: $this.find("title").text(),
                  link: $this.find("link").text(),
                  description: $this.find("description").text(),
                  pubDate: $this.find("pubDate").text(),
                  author: $this.find("author").text()
          }
          //Do something with item here...
      });
  });
  </code></pre>
  
  <p>However, due to the Single Origin Policy, I'm getting the following error:</p>
  
  <blockquote>
    <p>No 'Access-Control-Allow-Origin' header is present on the requested resource.</p>
  </blockquote>
  
  <p>Fortunately I have access to the source server, as this is my own dynamically created RSS feed.</p>
  
  <p>My question is: how do I set the Access-Control-Allow-Origin header on my source server?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'm using PHP and I think my webserver is Apache.</p>