Use this when deciding cookie SameSite behaviour.
SameSite
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.
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.
cross-site request → SameSite rule → cookie sent or not
Context & applicabilityCommon mistakes · platform/version boundaries
SameSite=NonewithoutSecure— browsers reject the cookie.- Relying on SameSite alone against CSRF: same-site subdomains can still send cookies.
Strictbreaking flows where users arrive via external links (they appear logged out).- Lax still allows top-level GET navigation — never change state on GET.
Operational reference
Fast context before you go deeper.
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.
- SameSite can be Strict, Lax or None.
- None requires Secure.
- Lax blocks most CSRF while allowing normal links.
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
| Value | Sent on cross-site requests | Use |
|---|---|---|
| Strict | Never | Sensitive apps; links from other sites arrive logged out |
| Lax | Only top-level GET navigations | Default; good for most sessions |
| None | Always (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.
| Value | Behaviour |
|---|---|
Strict | Never sent on cross-site requests (even following a link) |
Lax | Sent on top-level navigations with safe methods (GET), not on cross-site POST or embedded requests |
None | Always 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%