Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 1077

SameSite Cookie

Reviewed byCybersecurity entrepreneur & security researcher

What is SameSite Cookie?

SameSite CookieA cookie attribute that controls whether browsers attach the cookie on cross-site requests, with values Strict, Lax and None, used primarily to mitigate CSRF.


The SameSite attribute on a Set-Cookie header tells the browser when a cookie may ride along on requests initiated from another site. Strict withholds the cookie on every cross-site context, Lax sends it only on top-level GET navigations (clicking a link), and None permits it everywhere but requires the Secure flag. Specified in the IETF's RFC 6265bis draft, the attribute is a defence-in-depth control against Cross-Site Request Forgery and reduces third-party tracking surface.

The behaviour became significant when Chrome 80 (stable February 2020, enforced in a staged rollout from the week of 17 February) made Lax the default for cookies that set no attribute, and required None to be paired with Secure. Chrome also added a "Lax+POST" two-minute intervention and later "schemeful same-site", which treats http:// and https:// of one host as cross-site.

Lax is not a complete CSRF fix: because it still sends cookies on top-level GET navigations, any state-changing endpoint reachable by GET remains exploitable. Pair SameSite with anti-CSRF tokens, HttpOnly, Secure, and server-side Origin/Referer checks for sensitive flows.

flowchart TD
  A[Cross-site request carries cookie?] --> B{SameSite value}
  B -->|Strict| C[Never sent cross-site]
  B -->|Lax default| D{Top-level GET navigation?}
  D -->|Yes| E[Cookie sent]
  D -->|No e.g. POST, iframe, fetch| F[Cookie withheld]
  B -->|None| G{Secure flag set?}
  G -->|Yes| H[Sent in all contexts]
  G -->|No| I[Cookie rejected by browser]

● Examples

  1. 01

    'Set-Cookie: session=abc; Secure; HttpOnly; SameSite=Lax; Path=/'.

  2. 02

    Embedded payment iframe requires 'SameSite=None; Secure' so the cookie is sent in the cross-site context.

● Frequently asked questions

What is SameSite Cookie?

A cookie attribute that controls whether browsers attach the cookie on cross-site requests, with values Strict, Lax and None, used primarily to mitigate CSRF. It belongs to the Application Security category of cybersecurity.

What does SameSite Cookie mean?

A cookie attribute that controls whether browsers attach the cookie on cross-site requests, with values Strict, Lax and None, used primarily to mitigate CSRF.

How do you defend against SameSite Cookie?

Defences for SameSite Cookie typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for SameSite Cookie?

Common alternative names include: SameSite attribute.

● Related terms

● See also