On my website I am using XMLHttpRequest to open an XML file from another server:
var xml = new XMLHttpRequest();
xml.open("GET","http://www.otherserver.com/data.xml", false);
xml.send(null);
if(xml.status==200){
console.log(xml.responseXML);}
The above code works but I would love to be able to do the same thing but anonymously; without sending my website's url as the referer.
On [
w3.org...] it states that I can use the anon:true flag which would make my request anonymous by sending "about:blank" as the referer, but I haven't had any luck. In both examples the referer data is sending just like it did above:
var xml = new XMLHttpRequest({anon:true});
...
var xml = new XMLHttpRequest({anonymous:true});
...
Am I using this flag incorrectly or is this flat ust poorly supported?
If I am using it correctly are there any any other ways to fetch data from another server anonymously?