Skip to content

Commit a4b1bee

Browse files
committed
Add origin transport parameter to make it behave the same as WebSockets in relation to CORS.
1 parent 04301a0 commit a4b1bee

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

index.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -576,14 +576,8 @@ <h3><dfn>QuicTransportState</dfn> Enum</h3>
576576
</section>
577577
<section id="quic-transport*">
578578
<h2><dfn>QuicTransport</dfn> Interface</h2>
579-
<p>The <code>QuicTransport</code> is a subclass
580-
of <code>QuicTransportBase</code> focused on client/server use
581-
cases.</p>
582-
<section id="quictransport-operation*">
583-
<h3>Operation</h3>
584-
<p>A <code><a>QuicTransport</a></code> instance is constructed
585-
using an URL which is constrained by CORS, just like a WebSocket.</p>
586-
</section>
579+
<p>The <code>QuicTransport</code> is a subclass of
580+
<code>QuicTransportBase</code> focused on client/server use cases.</p>
587581
<section id="quictransport-interface-definition*">
588582
<h3>Interface Definition</h3>
589583
<div>
@@ -623,9 +617,13 @@ <h2>Constructors</h2>
623617
</li>
624618
<li>Run these steps in parallel:
625619
<ol>
626-
<li>Establish a QUIC connection to the address
627-
identified by the <var>parsedUrl</var>'s host and
628-
port.</li>
620+
<li>Establish a QUIC connection to the address identified by the
621+
<var>parsedUrl</var>'s host and port. The user agent MUST
622+
include a QUIC transport parameter with ID web_origin(0x330)
623+
<!-- TODO: Register the transport parameter with IANA -->
624+
and value equal to the value of an <a
625+
href="https://fetch.spec.whatwg.org/#origin-header">origin
626+
header used for HTTP fetching</a></li>
629627
<li>If the connection succeeds, set
630628
the <var>quictransport</var>'s <dfn>[[\QuicTransportState]]</dfn>
631629
internal slot to <code>"connected"</code>.</li>

0 commit comments

Comments
 (0)