title: Rails doesn't work with restangular
body: <p>I'm trying to get some data from JSON via Angular, but getting this error</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <a href="http://localhost:3000/movies.json" rel="nofollow">http://localhost:3000/movies.json</a>. No
    'Access-Control-Allow-Origin' header is present on the requested
    resource. Origin '<a href="http://blabla.herokuapp.com" rel="nofollow">http://blabla.herokuapp.com</a>' is therefore not
    allowed access.</p>
  </blockquote>
  
  <p>But I have this config and there is right host:</p>
  
  <pre><code>var app = angular.module('Test', ['restangular'])
    .config(function (RestangularProvider) {
  
     RestangularProvider.setBaseUrl("http://blabla.herokuapp.com");
     RestangularProvider.setRequestSuffix('.json');
     RestangularProvider.setDefaultHttpFields({xsrfCookieName:'csrftoken', xsrfHeaderName:'X-CSRFToken'});
  });
  </code></pre>
  
  <p>On the local machine this works fine(if I replace setBaseUrl of course)</p>