- From: Anne van Kesteren <notifications@github.com>
- Date: Sun, 21 Feb 2021 23:39:30 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 22 February 2021 07:39:42 UTC
@annevk commented on this pull request.
> @@ -5887,7 +5887,10 @@ object), initially null.
<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 {{RequestInit/credentials}} is unspecified, the
+ <a>credentials mode</a> for <var>request</var> defaults to "<code>same-origin</code>".
It's only the default if _input_ is a string (otherwise it would end up overriding the credentials mode).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1178#pullrequestreview-595071377
Received on Monday, 22 February 2021 07:39:42 UTC