[Greasemonkey] XMLHttpRequest and document.domain

Jeremy Dunck jdunck at gmail.com
Mon Jul 25 00:16:22 EDT 2005


On 7/24/05, Lenny Domnitser <ldrhcp at gmail.com> wrote:
> I do not know why changing document.domain is allowed or useful, but
> the Times of India website has this code:

It's useful because it affects which requests also include cookies: 
cookies are set for particular domains and paths.   A cookie set on
foo.bar.com will not go to bar.com, but a cookie set on bar.com will
go to requests of foo.bar.com.

I'm not sure why the browser doesn't remember what the original domain
was and therefore to reset the original...


More information about the Greasemonkey mailing list