title: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...' is therefore not allowed access
body: <p>I'm using .htaccess to rewrite urls and I used html base tag in order to make it work.</p>
  
  <p>Now, when I try to make an ajax request I get the following error:</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <code>http://www.example.com/login.php</code>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<code>http://example.com</code>' is therefore not allowed access.</p>
  </blockquote>