Handling Safari's 7-Day Cookie Limit with the Storage Access API
Safari's ITP limits third-party cookies to 7 days, breaking long-term analytics. Learn how to use the Storage Access API and user gestures to maintain persistent user identities.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Safari's ITP limits third-party cookies to 7 days, breaking long-term analytics. Learn how to use the Storage Access API and user gestures to maintain persistent user identities.
Safari blocks third-party cookies by default under ITP 2.3. Learn how the Storage Access API restores limited access after a user gesture, and how to test the behavior in Safari 15+.
Safari's ITP partitions third-party cookies by top-level site, breaking embeds that assume global storage. Learn how to diagnose partitioned cookies and use the Storage Access API to restore legitimate access.
The goal is to maintain a cross‑site authentication flow that relies on a session cookie set on a third‑party domain (e.g., api.auth‑provider.com) while the user interacts with the main application (app.example.com). The cookie is set with SameSite=None to allow cross‑origin requests, and the server returns it over HTTPS. In local development the request ori