Skip to content

Commit 24a8670

Browse files
Clarify that RequestInit's credentials affects response
Follow-up to 00344d2 to state something equivalent for the API. Also state the default when input is a string for credentials and mode.
1 parent efde35d commit 24a8670

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fetch.bs

+6-2
Original file line numberDiff line numberDiff line change
@@ -5923,11 +5923,15 @@ object), initially null.
59235923

59245924
<dt>{{RequestInit/mode}}
59255925
<dd>A string to indicate whether the request will use CORS, or will be restricted to same-origin
5926-
URLs. Sets <var>request</var>'s {{Request/mode}}.
5926+
URLs. Sets <var>request</var>'s {{Request/mode}}. If <var>input</var> is a string, it defaults to
5927+
"<code>cors</code>".
59275928

59285929
<dt>{{RequestInit/credentials}}
59295930
<dd>A string indicating whether credentials will be sent with the request always, never, or only
5930-
when sent to a same-origin URL. Sets <var>request</var>'s {{Request/credentials}}.
5931+
when sent to a same-origin URL — as well as whether any credentials sent back in the response
5932+
will be used always, never, or only when received from a same-origin URL. Sets
5933+
<var>request</var>'s {{Request/credentials}}. If <var>input</var> is a string, it defaults to
5934+
"<code>same-origin</code>".
59315935

59325936
<dt>{{RequestInit/cache}}
59335937
<dd>A string indicating how the request will interact with the browser's cache to set

0 commit comments

Comments
 (0)