Skip to content
Discussion options

You must be logged in to vote

Your diagnosis is right, and there's no config that gets around it. Safari's ITP blocks cookies from a domain the user has never visited as a first party. In a Pake window there's no "visiting" your API domain, so it stays third-party forever. SameSite=None; Secure only gets you past the SameSite check. ITP is a separate, stricter layer on top.

Two things work here.

The clean fix is same registrable domain. The API has to sit on a subdomain of the site you load, not just share a root in spirit. app.example.com for the frontend and api.example.com for the backend is fine, and set the cookie on .example.com. Safari treats that as first-party and the cookie flows. If your frontend is on Verc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DISTinTheHouse
Comment options

Answer selected by DISTinTheHouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants