Issue with "Using Fetch": Add information about SameSite for cookies, when using credentials: 'include' #7025
Labels
area: Fetch/XMLHttpRequest
Content:WebAPI
Web API docs
effort: medium
This task is a medium effort.
help wanted
If you know something about this topic, we would love your help!
MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
What information was incorrect, unhelpful, or incomplete?
There's no mention of the SameSite feature of cookies, which is important when using the
credentials: 'include'
option.credentials: 'include'
will have no effect when a cookie is fetched from another domain whenSameSite=Lax
orSameSite=Strict
is set for the cookie (like a session cookie).This took me quite a while to figure out and might have saved me time if it was mentioned on the page.
The text was updated successfully, but these errors were encountered: