Skip to content

Commit

Permalink
Fix generated html in source, and add note describing CORS-exposed he…
Browse files Browse the repository at this point in the history
…ader-names list.
  • Loading branch information
mkruisselbrink committed Mar 29, 2016
1 parent 8c2a9dd commit 0de4b98
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
17 changes: 12 additions & 5 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="https://whatwg.org/"><img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-28-march-2016">Living Standard — Last Updated 28 March 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-29-march-2016">Living Standard — Last Updated 29 March 2016</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -451,7 +451,7 @@ <h4 id="terminology-headers"><span class="secno">3.1.2 </span>Headers</h4>
</ul>

<p>A <dfn id="cors-safelisted-response-header-name">CORS-safelisted response-header name</dfn>, given a
<a href="#concept-response-cors-exposed-headers-list" title="concept-response-cors-exposed-headers-list">CORS-exposed headers list</a> <var>list</var>, is a
<a href="#concept-response-cors-exposed-header-name-list" title="concept-response-cors-exposed-header-name-list">CORS-exposed header-name list</a> <var>list</var>, is a
<a href="#concept-header" title="concept-header">header</a> <a href="#concept-header-name" title="concept-header-name">name</a> that is one of:

<ul>
Expand Down Expand Up @@ -1110,11 +1110,18 @@ <h4 id="responses"><span class="secno">3.1.6 </span>Responses</h4>
specified. <a href="#refsCSP">[CSP]</a>

<p>A <a href="#concept-response" title="concept-response">response</a> has an associated
<dfn id="concept-response-cors-exposed-headers-list" title="concept-response-cors-exposed-headers-list">CORS-exposed headers list</dfn>
<dfn id="concept-response-cors-exposed-header-name-list" title="concept-response-cors-exposed-header-name-list">CORS-exposed header-name list</dfn>
(a list of zero or more
<a href="#concept-header" title="concept-header">header</a> <a href="#concept-header-name" title="concept-header-name">names</a>).
The list is empty unless otherwise specified.

<p class="note no-backref">A <a href="#concept-response" title="concept-response">response</a> will typically get its
<a href="#concept-response-cors-exposed-header-name-list" title="concept-response-cors-exposed-header-name-list">CORS-exposed header-name list</a>
set by <a href="#concept-header-parse" title="concept-header-parse">parsing</a> the
`<a href="#http-access-control-expose-headers"><code title="http-access-control-expose-headers">Access-Control-Expose-Headers</code></a>` header. This
list is used by a <a href="#concept-filtered-response-cors" title="concept-filtered-response-cors">CORS filtered response</a> to
determine which headers to expose.

<hr>

<p>A <a href="#concept-response" title="concept-response">response</a> whose
Expand Down Expand Up @@ -1166,7 +1173,7 @@ <h4 id="responses"><span class="secno">3.1.6 </span>Responses</h4>
<a href="#concept-header-name" title="concept-header-name">name</a> is <em>not</em> a
<a href="#cors-safelisted-response-header-name">CORS-safelisted response-header name</a>, given
<a href="#concept-internal-response" title="concept-internal-response">internal response</a>'s
<a href="#concept-response-cors-exposed-headers-list" title="concept-response-cors-exposed-headers-list">CORS-exposed headers list</a>.
<a href="#concept-response-cors-exposed-header-name-list" title="concept-response-cors-exposed-header-name-list">CORS-exposed header-name list</a>.

<p>An <dfn id="concept-filtered-response-opaque" title="concept-filtered-response-opaque">opaque filtered response</dfn> is a
<a href="#concept-filtered-response" title="concept-filtered-response">filtered response</a> whose
Expand Down Expand Up @@ -2110,7 +2117,7 @@ <h3 id="main-fetch"><span class="secno">5.1 </span>Main fetch</h3>
<var>response</var> is not a
<a href="#concept-filtered-response" title="concept-filtered-response">filtered response</a>, set
<var>response</var>'s
<a href="#concept-response-cors-exposed-headers-list" title="concept-response-cors-exposed-headers-list">CORS-exposed headers list</a> to the result of
<a href="#concept-response-cors-exposed-header-name-list" title="concept-response-cors-exposed-header-name-list">CORS-exposed header-name list</a> to the result of
<a href="#concept-header-parse" title="concept-header-parse">parsing</a>
`<a href="#http-access-control-expose-headers"><code title="http-access-control-expose-headers">Access-Control-Expose-Headers</code></a>` in
<var>response</var>'s
Expand Down
23 changes: 15 additions & 8 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ <h4 id=terminology-headers>Headers</h4>
<li>`<code title>Set-Cookie2</code>`
</ul>

<p>A <dfn id="cors-safelisted-response-header-name">CORS-safelisted response-header name</dfn>, given a
<span title=concept-response-cors-exposed-headers-list>CORS-exposed headers list</span> <var>list</var>, is a
<a href="#concept-header" title="concept-header">header</a> <a href="#concept-header-name" title="concept-header-name">name</a> that is one of:
<p>A <dfn>CORS-safelisted response-header name</dfn>, given a
<span title=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</span> <var>list</var>, is a
<span title=concept-header>header</span> <span title=concept-header-name>name</span> that is one of:

<ul>
<li>`<code title>Cache-Control</code>`
Expand All @@ -392,8 +392,8 @@ <h4 id=terminology-headers>Headers</h4>
<li>`<code title>Expires</code>`
<li>`<code title>Last-Modified</code>`
<li>`<code title>Pragma</code>`.
<li>Any <a href="#concept-header-value" title="concept-header-value">value</a> in
<var>list</var> that is not a <a href="#forbidden-response-header-name">forbidden response-header name</a>.
<li>Any <span title=concept-header-value>value</span> in
<var>list</var> that is not a <span>forbidden response-header name</span>.
</ul>

<hr>
Expand Down Expand Up @@ -1041,11 +1041,18 @@ <h4>Responses</h4>
specified. <span data-anolis-ref>CSP</span>

<p>A <span title=concept-response>response</span> has an associated
<dfn title=concept-response-cors-exposed-headers-list>CORS-exposed headers list</dfn>
<dfn title=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</dfn>
(a list of zero or more
<span title=concept-header>header</span> <span title=concept-header-name>names</span>).
The list is empty unless otherwise specified.

<p class="note no-backref">A <span title=concept-response>response</span> will typically get its
<span title=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</span>
set by <span title=concept-header-parse>parsing</span> the
`<code title=http-access-control-expose-headers>Access-Control-Expose-Headers</code>` header. This
list is used by a <span title=concept-filtered-response-cors>CORS filtered response</span> to
determine which headers to expose.

<hr>

<p>A <span title=concept-response>response</span> whose
Expand Down Expand Up @@ -1097,7 +1104,7 @@ <h4>Responses</h4>
<span title=concept-header-name>name</span> is <em>not</em> a
<span>CORS-safelisted response-header name</span>, given
<span title=concept-internal-response>internal response</span>'s
<span title=concept-response-cors-exposed-headers-list>CORS-exposed headers list</span>.
<span title=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</span>.

<p>An <dfn title=concept-filtered-response-opaque>opaque filtered response</dfn> is a
<span title=concept-filtered-response>filtered response</span> whose
Expand Down Expand Up @@ -2041,7 +2048,7 @@ <h3>Main fetch</h3>
<var>response</var> is not a
<span title=concept-filtered-response>filtered response</span>, set
<var>response</var>'s
<span title=concept-response-cors-exposed-headers-list>CORS-exposed headers list</span> to the result of
<span title=concept-response-cors-exposed-header-name-list>CORS-exposed header-name list</span> to the result of
<span title=concept-header-parse>parsing</span>
`<code title=http-access-control-expose-headers>Access-Control-Expose-Headers</code>` in
<var>response</var>'s
Expand Down

0 comments on commit 0de4b98

Please sign in to comment.