-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default to 'strict-origin-when-cross-origin'. #125
Conversation
This addresses #121, and will be followed with a corresponding patch to Fetch (where the default is currently defined).
cc @annevk and @johnwilander again for the same question. |
This addresses w3c/webappsec-referrer-policy#125, among other things.
You may want to change the legacy |
Would it be an option to wait with landing this until it's successfully shipped in one browser? |
<a>"<code>no-referrer-when-downgrade</code>"</a>. This defaulting happens in | ||
the [[#determine-requests-referrer]] algorithm. | ||
no such higher-level policy is available, falling back to the <a>default referrer | ||
policy</a>. This happens in Fetch's main fetch algorithm, for example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where else would it happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW Firefox since version 59 has been shipping this as the default referrer policy in private browsing mode. |
Safari seems to do a similar thing by default (as a subfeature of ITP) since 13.0.4/13.3; but only for third-party requests, not for cross-origin top navigations. |
Safari’s change is not a change of default policy. Sites can’t change it, only users can. Third-party referrers are downgraded to origin by default regardless of the referrer policy set by the website. |
This addresses #121, and will be followed
with a corresponding patch to Fetch (where the default is currently
defined).
Preview | Diff