Skip to content

Commit 263eff3

Browse files
committed
mention Access-Control-Expose-Headers: * in example
1 parent 7ab655b commit 263eff3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Overview.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,12 @@ <h4 id="cors-protocol-examples"><span class="secno">4.2.6 </span>Examples</h4>
20332033
because <code>bar.invalid</code> needs to explicitly share each header by listing their names in
20342034
the `<a href="#http-access-control-expose-headers"><code title="http-access-control-expose-headers">Access-Control-Expose-Headers</code></a>` response
20352035
header.
2036+
2037+
<p>Alternatively, if <code>bar.invalid</code> wanted to share all its response headers, for
2038+
requests that do not include <a href="#credentials">credentials</a>, it could use `<code>*</code>` as value for
2039+
the `<a href="#http-access-control-expose-headers"><code title="http-access-control-expose-headers">Access-Control-Expose-Headers</code></a>` response
2040+
header. If the request would have included <a href="#credentials">credentials</a>, the response header names
2041+
would have to be listed explicitly and `<code>*</code>` could not be used.
20362042
</div>
20372043

20382044
<div class="example">

Overview.src.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,6 +1961,12 @@ <h4 id=cors-protocol-examples>Examples</h4>
19611961
because <code>bar.invalid</code> needs to explicitly share each header by listing their names in
19621962
the `<code title=http-access-control-expose-headers>Access-Control-Expose-Headers</code>` response
19631963
header.
1964+
1965+
<p>Alternatively, if <code>bar.invalid</code> wanted to share all its response headers, for
1966+
requests that do not include <span>credentials</span>, it could use `<code>*</code>` as value for
1967+
the `<code title=http-access-control-expose-headers>Access-Control-Expose-Headers</code>` response
1968+
header. If the request would have included <span>credentials</span>, the response header names
1969+
would have to be listed explicitly and `<code>*</code>` could not be used.
19641970
</div>
19651971

19661972
<div class="example">

0 commit comments

Comments
 (0)