Skip to content

Commit

Permalink
Omit referrers on cross-origin requests from an .onion address (fixes w…
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Nov 18, 2021
1 parent bbc7291 commit 43afe36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,12 @@ <h3 id="determine-requests-referrer" dfn export>
Let request's <dfn>referrerURL</dfn> be the result of <a href="#strip-url">stripping
<var>referrerSource</var> for use as a referrer.</a>
</li>
<li>
If the <a for=url>origin</a> of <a>referrerURL</a> has a <a for=origin>host</a> that
ends with <code>.onion.</code> or <code>.onion</code>, the special-use domain name defined
in [[!RFC7686]], and the request is a <a>cross-origin-referrer request</a>, then return
<code>no referrer</code>.
</li>
<li>
Let <var>referrerOrigin</var> be the result of
<a href="#strip-url">stripping <var>referrerSource</var> for use as a
Expand Down

0 comments on commit 43afe36

Please sign in to comment.