SameSite

A cookie attribute that limits whether the browser sends the cookie on requests started by other websites.

In more detail

Strict never sends it cross-site, Lax sends it only on top-level navigations such as following a link, and None always sends it but requires Secure. It is a main defence against cross-site request forgery.

Example

In the browser: Strict never sends the cookie on cross-site requests, even when following a link. Lax, which Chromium-based browsers apply when no SameSite value is set, sends it on top-level link navigations but not on cross-site form POSTs, fetches or embedded subrequests. None sends it everywhere and requires Secure.

Related terms

Taught in

References