Closed Bug 311189 Opened 19 years ago Closed 19 years ago

XMLHttpRequest: referrer not sent

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 170477

People

(Reporter: dao, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20050929 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20050929 Firefox/1.4

As you can see at http://design-noir.de/bugzilla/XMLHttpRequest-referrer.php,
Firefox / XMLHttpRequest does not send the referring URL to the requested target.
Since it works just as expected with both Internet Explorer 6 and Opera 8.5 and
I see no sense in leaving the referrer out, I suppose it's a bug.

Reproducible: Always

Steps to Reproduce:
1. send a request to some script via XMLHttpRequest
2. let the script return the HTTP_REFERER
3. alert the response or write it to the document.
Actual Results:  
HTTP_REFERER is not set.

Expected Results:  
HTTP_REFERER should be set -- document.location.href, I suppose.
bug 170477 claims that it doesn't work in IE ????
My URL is there, try it yourself.
At least it works for me with IE 6.00.2900.2180 (xpsp_sp2_rtm.040803-2158). But
as far as I know there are several versions of Msxml.

But let me just cite Sven Neuhaus from bug 170477: "IE 6's behaviour shouldn't
matter, should it?" Besides, sending no referrer where it's actually expected
(well, I expected it) is quite worse than sending the referrer even if it's not
needed or should not be needed in most cases.

*** This bug has been marked as a duplicate of 170477 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: DOM: Other → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.