I\'m using .htaccess to rewrite urls and I used html base tag in order to make it work.
Now, when I try to make an ajax request I get the following error:
Pleaes find the Function used in XMLHTTPREQUEST in Javascript for setting up the request headers.
... xmlHttp.setRequestHeader("Access-Control-Allow-Origin", "http://www.example.com"); ...
Reference: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader