W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

Re: [XHR] What referrer to use when making requests

From: Anne van Kesteren <annevk@annevk.nl>
Date: Sat, 7 Jul 2012 11:11:06 +0100
Message-ID: <CADnb78jADfxGRiMto0Wf0UwTx8mioCEOOh5+1QUdt5kJgDeZ0g@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Webapps WG <public-webapps@w3.org>
On Fri, Jul 6, 2012 at 11:30 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> It's currently not specified what the 'referer' request header should
> be set to when making requests using XMLHttpRequest. For example if an
> XHR object is created by one document, and then passes the object to a
> second document which calls xhr.open. Or if a page creates a XHR
> object and then calls history.pushState some time before xhr.send is
> called.

It is defined actually to be the entry's script document address. The
fetch algorithm sets the referer header. (We discussed this before
somewhere.)


-- 
http://annevankesteren.nl/
Received on Saturday, 7 July 2012 10:11:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:53 GMT