Browser Cookie SameSite Errors — Cross-Site Cookie Blocking
Warningsecurity
Overview
Fix cookie SameSite errors including 'cookie was not set because it did not have a SameSite attribute', cross-site cookie rejection, and third-party cookie blocking.
Key Details
- SameSite attribute controls when cookies are sent with cross-site requests
- SameSite values: Strict (never cross-site), Lax (top-level navigation only), None (always, requires Secure)
- Chrome defaults cookies without SameSite to Lax since Chrome 80
- SameSite=None requires the Secure attribute (cookie only sent over HTTPS)
- Third-party cookie deprecation will eventually block all cross-site cookies
Common Causes
- Cookie set without SameSite attribute, defaulting to Lax and breaking cross-site use
- SameSite=None set without Secure attribute (required combination)
- Third-party cookie blocking by browser settings or privacy extensions
- Cross-site iframe or redirect losing cookies due to SameSite enforcement
- OAuth flows broken because auth cookies are not sent in cross-site redirects
Steps
- 1Set SameSite explicitly: Set-Cookie: name=value; SameSite=None; Secure (for cross-site need)
- 2For same-site only cookies: Set-Cookie: name=value; SameSite=Lax (default, most cases)
- 3Ensure Secure flag is set when using SameSite=None (HTTPS required)
- 4For OAuth: ensure callback URLs match the cookie's site to use SameSite=Lax
- 5Test in Chrome DevTools > Application > Cookies — 'Issues' tab shows SameSite warnings
Tags
browsercookiesamesitesecuritythird-party
More in Security
windows-defender-errorsWindows Defender Errors — Antivirus Not Working or Updating
Errorwindows-error-0x80073b01-defender-serviceWindows Error 0x80073B01 — Windows Defender Service Failed to Start
Errormac-gatekeeper-app-blockedMac Gatekeeper — App Cannot Be Opened (Unidentified Developer)
Warningmac-filevault-recovery-errorsMac FileVault Errors — Encryption, Decryption & Recovery Key Issues
Errorlinux-ssl-tls-certificate-errorsLinux SSL/TLS Certificate Errors — Expired, Self-Signed & Chain Issues
Warningbrowser-mixed-content-warningsBrowser Mixed Content Warnings — HTTP Resources on HTTPS Page
WarningFrequently Asked Questions
Strict: cookie never sent cross-site. Lax: sent only on top-level navigation (clicking a link). None: always sent (requires Secure flag).