content icon indicating copy to clipboard operation
content copied to clipboard

Problem with origin-when-cross-origin in Referrer Policy header

Open manubhai04 opened this issue 1 year ago • 1 comments

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy

What specific section or headline is this issue about?

origin-when-cross-origin

What information was incorrect, unhelpful, or incomplete?

origin-when-cross-origin is described as

When performing a same-origin request to the same protocol level (HTTP→HTTP, HTTPS→HTTPS), send the origin, path, and query string.

But a same-origin request would always be to the same protocol level, as described here https://developer.mozilla.org/en-US/docs/Glossary/Origin. Is this misleading or am I missing something?

What did you expect to see?

When performing a same-origin request ~to the same protocol level (HTTP→HTTP, HTTPS→HTTPS)~

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
  • Folder: en-us/web/http/reference/headers/referrer-policy
  • MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy
  • GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/http/reference/headers/referrer-policy/index.md
  • Last commit: https://github.com/mdn/content/commit/ad5b5e31f81795d692e66dadb7818ba8b220ad15
  • Document last modified: 2025-07-04T01:10:07.000Z

manubhai04 avatar Sep 15 '25 08:09 manubhai04

But a same-origin request would always be to the same protocol level, as described here https://developer.mozilla.org/en-US/docs/Glossary/Origin. Is this misleading or am I missing something?

I think you are right, and your proposed fix looks good to me.

wbamberg avatar Sep 15 '25 18:09 wbamberg