Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

SameSite

Direct answer

SameSite is a cookie attribute that controls cross-site sending: Strict, Lax (the browser default) or None, which requires Secure. Lax or Strict blocks most CSRF attacks.

When to use this

Use this when deciding cookie SameSite behaviour.

First 30 seconds

1. SameSite controls cross-site cookie sending.

2. Lax default in modern browsers.

3. Strict for sensitive actions.

4. None only with Secure for cross-site needs.

5. Still use CSRF tokens for state changes.

Operational verification

cross-site request → SameSite rule → cookie sent or not

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • SameSite=None without Secure — browsers reject the cookie.
  • Relying on SameSite alone against CSRF: same-site subdomains can still send cookies.
  • Strict breaking flows where users arrive via external links (they appear logged out).
  • Lax still allows top-level GET navigation — never change state on GET.
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations
Scope / prerequisiteUse this when deciding cookie SameSite behaviour.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • SameSite can be Strict, Lax or None.
  • None requires Secure.
  • Lax blocks most CSRF while allowing normal links.
Key checks
  • curl -sI https://<site> | grep -i samesite — SameSite attribute
  • Lax vs Strict vs None — choice
  • SameSite=None requires Secure — cross-site cookies
ReferenceWhy it matters1 section · depth on demand

Values

ValueSent on cross-site requestsUse
StrictNeverSensitive apps; links from other sites arrive logged out
LaxOnly top-level GET navigationsDefault; good for most sessions
NoneAlways (requires Secure)Embedded or third-party use only

SameSite reduces CSRF but is not a full replacement for CSRF tokens on state-changing requests.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

SameSite is a cookie attribute that controls whether browsers send the cookie with requests initiated by other sites. It is a strong, simple defence against cross-site request forgery.

ValueBehaviour
StrictNever sent on cross-site requests (even following a link)
LaxSent on top-level navigations with safe methods (GET), not on cross-site POST or embedded requests
NoneAlways sent; requires Secure — needed for legitimate cross-site use (SSO, embedded apps)

Modern browsers treat cookies without SameSite as Lax. Use Lax for session cookies by default, Strict for highly sensitive applications, and None; Secure only where cross-site behaviour is required — combined with CSRF tokens.

Browser default

Chrome and Edge treat cookies without a SameSite attribute as Lax (since 2020), with a short grace period for top-level POSTs. Firefox and Safari have their own tracking protections. Set the attribute explicitly so behaviour is predictable across browsers.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Web Security → SameSite. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%
Confirmation

Confirm action

Continue?