title: AngularJs template url loading throws CORS error
body: <p>I have developed an app using AngularJS.</p>
  
  <p>It is live at the following url but it isn't working because of CORS issue on loading templates:
  <a href="http://www.ebust.it/app/#/lines/list" rel="nofollow">http://www.ebust.it/app/#/lines/list</a></p>
  
  <p>The app works fine on the url without "www":
  <a href="http://ebust.it/app/#/lines/list" rel="nofollow">http://ebust.it/app/#/lines/list</a></p>
  
  <p>The error that I get from js console:</p>
  
  <pre><code>XMLHttpRequest cannot load http://ebust.it/themes/frontend/spa/app/views/lines.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.ebust.it' is therefore not allowed access.
  </code></pre>
  
  <p>I also tried to force the template as absolute URL. Have you ever experiences something similar? I can't understand why Angular is using the wrong domain to perform the AJAX request for the template URL.</p>