Skip to content

Commit

Permalink
Omit referrers on cross-origin requests from an .onion address (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Nov 9, 2021
1 parent a5fc841 commit 01399cb
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 @@ -848,6 +848,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> is using the <code>.onion</code>
special-use domain name defined in [[!RFC7686]] and is not <a lt="same origin">the
same</a> as the <a for=url>origin</a> of <var>request</var>'s <a for=request>current
URL</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 01399cb

Please sign in to comment.