homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

XMLHttpRequest Anonymous Flag not working

5+ Year Member

Msg#: 4582962 posted 1:14 am on Jun 11, 2013 (gmt 0)

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);

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?



WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4582962 posted 7:29 pm on Jun 11, 2013 (gmt 0)

There are several sites out there through which you can hide the referrer, simply by processing the request through an referrer anonymizer.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved