Skip to content

Commit

Permalink
Clarify that RequestInit's credentials affects response
Browse files Browse the repository at this point in the history
Follow-up to 00344d2 to state something equivalent for the API. Also state the default when input is a string for credentials and mode.
  • Loading branch information
sideshowbarker authored Mar 1, 2021
1 parent efde35d commit 24a8670
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5923,11 +5923,15 @@ object), initially null.

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

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

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

0 comments on commit 24a8670

Please sign in to comment.