Third-Party Cookie Blocking — Cross-Site Tracking Prevention and Breakage
About Third-Party Cookie Blocking
Understand and fix third-party cookie blocking issues in modern browsers, including site breakage from tracking prevention, SSO failures, and embedded content issues. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: Third-party cookies are set by domains other than the site you are visiting (used for tracking and ads). Chrome is phasing out third-party cookies (Privacy Sandbox); Safari and Firefox already block them. Safari ITP (Intelligent Tracking Prevention) aggressively blocks and limits cookie lifetimes. Third-party cookie blocking can break: SSO login, embedded content (maps, videos), payment processors. SameSite=None; Secure attribute is required for cookies that need cross-site access. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: Browser's tracking prevention blocking legitimate cross-site cookies. Embedded iframe content from a different domain unable to set or read cookies. SSO (Single Sign-On) provider's authentication cookie blocked as third-party. Payment gateway's session cookie blocked, preventing transaction completion. Analytics cookies blocked, causing session tracking to fail. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Test with third-party cookies enabled: Chrome Settings > Privacy > Cookies > Allow all cookies (temporarily). For developers: set SameSite=None; Secure on cookies that need cross-site access. Use Storage Access API: document.requestStorageAccess() for embedded content needing cookie access. For SSO: implement redirect-based authentication flows instead of iframe-based. Safari: users can allow cross-site tracking in Settings > Safari > Privacy > uncheck 'Prevent cross-site tracking'. Migrate to alternatives: First-party cookies, localStorage, server-side sessions, or Privacy Sandbox APIs. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our Browser Errors collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
When will Chrome block third-party cookies?
Chrome planned to phase out third-party cookies but has extended the timeline multiple times. As of 2025, Chrome is implementing Privacy Sandbox APIs as alternatives. Check Chrome's privacy sandbox documentation for the latest timeline.
Overview
Understand and fix third-party cookie blocking issues in modern browsers, including site breakage from tracking prevention, SSO failures, and embedded content issues.
Key Details
- Third-party cookies are set by domains other than the site you are visiting (used for tracking and ads)
- Chrome is phasing out third-party cookies (Privacy Sandbox); Safari and Firefox already block them
- Safari ITP (Intelligent Tracking Prevention) aggressively blocks and limits cookie lifetimes
- Third-party cookie blocking can break: SSO login, embedded content (maps, videos), payment processors
- SameSite=None; Secure attribute is required for cookies that need cross-site access
Common Causes
- Browser's tracking prevention blocking legitimate cross-site cookies
- Embedded iframe content from a different domain unable to set or read cookies
- SSO (Single Sign-On) provider's authentication cookie blocked as third-party
- Payment gateway's session cookie blocked, preventing transaction completion
- Analytics cookies blocked, causing session tracking to fail
Steps
- 1Test with third-party cookies enabled: Chrome Settings > Privacy > Cookies > Allow all cookies (temporarily)
- 2For developers: set SameSite=None; Secure on cookies that need cross-site access
- 3Use Storage Access API: document.requestStorageAccess() for embedded content needing cookie access
- 4For SSO: implement redirect-based authentication flows instead of iframe-based
- 5Safari: users can allow cross-site tracking in Settings > Safari > Privacy > uncheck 'Prevent cross-site tracking'
- 6Migrate to alternatives: First-party cookies, localStorage, server-side sessions, or Privacy Sandbox APIs