1. Mozilla
  2. Add-ons
  3. Browser extensions
  4. JavaScript APIs
  5. cookies
  6. cookies.SameSiteStatus

cookies.SameSiteStatus

The SameSiteStatus type of the cookies API represents information about the SameSite state of a cookie.

Type

Values of this type are strings. Possible values are:

no_restriction

Corresponds to a cookie set with SameSite=None.

lax

Corresponds to a cookie set with SameSite=Lax.

strict

Corresponds to a cookie set with SameSite=Strict.

unspecified

Corresponds to a cookie set without the SameSite attribute. This state is not part of any SameSite standard, and is only supported by browsers that store this state internally. Other browsers map the absence of the SameSite flag to the default state (e.g., Lax). See the browser compatibility table for more details.

See SameSite cookies for more information.

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /