Re: [whatwg/fetch] Send "null" Origin header on cross-origin .onion requests (PR #1351)

@fmarier commented on this pull request.



> @@ -2820,6 +2823,11 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
  <li><p>Let <var>serializedOrigin</var> be the result of <a>byte-serializing a request origin</a>
  with <var>request</var>.
 
+ <li><p>If <var>request</var>'s <a for=request>current URL</a>'s <a for=url>origin</a> uses the
+ <code>.onion</code> special-use domain name [[ONION]] and is not <a>same origin</a> with
+ <var>request</var>'s <a for=request>origin</a>, then set <var>serializedOrigin</var> to
+ `<code>null</code>`.

Is this latest revision what you had in mind?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1351#discussion_r746295860

Received on Wednesday, 10 November 2021 07:04:24 UTC