title: Pull Wordpress Blog Post into Angular JS
body: <p>I want to pull in the blog feed from something like <a href="http://blog.neosavvy.com/?feed=rss2" rel="nofollow">http://blog.neosavvy.com/?feed=rss2</a> for use in an Angular application that doesn't live on the same domain. </p>
  
  <p>I was going to use ProxyPass, however ProxyPass won't work with the /?feed=rss2. Is there a rewrite rule I can use to avoid the Cross Domain issues that Javascript has when fetching things that aren't in the same URL. </p>
  
  <p>I use AngularJS's service to fetch the feed content just like any other service. </p>
  
  <p>Here is the code I am using to fetch the blog rss:</p>
  
  <pre><code>$scope.getBlogPost = function() {
      $http({method:'GET', url:'http://blog.neosavvy.com/?feed=rss2'}).
          success(function (data, status, headers, config) {
              console.log("data returned");
          }).
          error(function (data, status, headers, config) {
              console.log("data not returned");
          });
  }
  </code></pre>
  
  <p>Here is the error I receive - thus the need for a proxypass or some alternative.</p>
  
  <p>XMLHttpRequest cannot load <a href="http://blog.neosavvy.com/?feed=rss2" rel="nofollow">http://blog.neosavvy.com/?feed=rss2</a>. Origin <a href="http://local.something.com" rel="nofollow">http://local.something.com</a> is not allowed by Access-Control-Allow-Origin.</p>