fetch credentials mode

The fetch option that decides whether cookies and HTTP authentication are sent: omit, same-origin (the default) or include.

In more detail

Credentials here means cookies, HTTP authentication and client certificates. credentials: 'include' sends cookies on cross-origin requests, but the browser only shows the response if the server replies with Access-Control-Allow-Credentials: true and a specific, non-wildcard origin.

Related terms

Taught in

References