Safari 27.2 stopped capping cookies on your link domain

A seven-day cap on top-level responses from CNAMEd hosts is gone. What is still capped, what Safari 27's blocklist ignores, and why a redirect should set no cookie.

Also in Deutsch, Español (currently English)

A straight track runs through an open magenta gate while a thin side branch ends at a closed barrier.

Safari 27.2, released on October 26, fixed a bug that hit almost every branded short-link domain: cookies set by a top-level navigation's own response were capped to seven days when the hostname was CNAMEd to a different registrable domain. That is the standard setup for go.brand.com. The fix restores what WebKit's own rules always said. It does not make a CNAMEd link domain first-party everywhere, and it is a good moment to ask whether your redirect should set a cookie at all. Our answer: the cleanest redirect sets none.

A branded short domain is usually a DNS alias. You create go.brand.com as a CNAME pointing at the link vendor's edge, say edge.vendor.example, which is a different registrable domain. The browser asks for go.brand.com, DNS answers with the vendor's name, and the vendor's servers answer the request. At the apex, where a CNAME is not allowed, the same is done with A and AAAA records holding the vendor's IP addresses, or with an ALIAS (flattened) record.

Safari has looked at this since 2020. In CNAME Cloaking and Bounce Tracking Defense (November 12, 2020), John Wilander defined third-party CNAME cloaking as "a first-party subresource that resolves through a CNAME" that differs from both the first party's own CNAME and the top frame host's CNAME. Safari 14 capped cookies set in such responses to seven days. The target was trackers hiding behind track.brand.com while really running on someone else's server.

Note the word subresource. The 2020 table covers a first-party host that is itself cloaked (www.blog.example resolving to abc123.edge.example) and lists it as "No cap". A visitor who taps go.brand.com/spring makes a top-level navigation to go.brand.com. In that moment, go.brand.com is the first party.

What Safari 27.2 fixed

The WebKit features post for Safari 27.2 has one line on this, under Networking: "Fixed cookies set by a top-level navigation's own response being capped to a seven-day lifetime when the site's hostname is CNAMEd to a different registrable domain." (183787115). The release covers iOS, iPadOS and visionOS 27.2 and macOS 27.2 Golden Gate, Tahoe and Sequoia.

In practice: if your redirect answered with Set-Cookie: v=b; Max-Age=31536000, Safari kept that cookie for at most seven days, although it belonged to the site the visitor had just navigated to. Any CNAMEd site on a CDN or hosted platform was affected, not only link domains. PPC Land's analysis reads the cap as going beyond the 2020 definition. That is PPC Land's reading; Apple's note only calls it a fix.

Two things Apple has not said: which Safari version introduced the behaviour, and what happens to cookies already stored with the shortened expiry. We found neither documented. The safe assumption is that a cookie keeps the expiry it was stored with until your server sets it again.

The CNAME logic is still being tuned. On October 27, WebKit bug 329139 reported that accounts.youtube.com resolves through a CNAME to google.com, so CNAME capping shortened YouTube's session cookies and signed people out. A fix landed in WebKit's main branch (325161@main) two days later. This is live code, not a 2020 relic.

What is still capped

The 27.2 fix covers the top-level response and nothing else. Three things are unchanged:

  • Your link domain as a subresource. If a page on www.brand.com loads anything from go.brand.com (a click pixel, a scan beacon, a script on a link-in-bio page), that request is a first-party subresource resolving through a third-party CNAME. Cookies in its response are capped to seven days, exactly as in 2020.
  • Third-party IP addresses. WebKit also caps cookies in responses from third-party IP addresses (bug 246477, fixed October 2022), and WebKit's tracking prevention page lists this defense next to CNAME cloaking. An apex domain on A records is judged by IP, not by CNAME, and the 27.2 note mentions CNAMEs only.
  • Script-written storage. The same page says "ITP deletes all cookies created in JavaScript and all other script-writeable storage after 7 days" of no user interaction with the website.
Who sets the cookieDNS setupSafari 27.2
Redirect response to a top-level navigation to go.brand.comCNAME to the vendor's edgeNo cap (7 days before the fix)
Response to a subresource from go.brand.com on a www.brand.com pagego CNAMEd to the vendor, www not7-day cap
The same, with both hosts CNAMEd to the same edge namematching cloakingNo cap
Response from a third-party IP addressA record to the vendor's IP7-day cap
JavaScript on any pageanyDeleted after 7 days without user interaction

Rows two and three come from the 2020 table, row one from the 27.2 note, rows four and five from the tracking prevention page.

So the belief that "a CNAMEd custom domain makes everything first-party in Safari" is wrong for subresources. For the top-level response, it is true again from 27.2 on.

Safari 27's blocklist leaves navigations alone

Safari 27 also blocks network access to some tracking domains outright. WebKit's Blocking Identity Resolution Infrastructure (October 19, 2026) says the blocking "is done on the domain level". Bug 324771 shows the first list: identity domains such as uidapi.com, id5-sync.com, rlcdn.com and permutive.com, plus The Trade Desk's adsrvr.org, which the iOS 27.2 beta unblocked after a bug report argued it serves ads, not identity.

Bug 324589, landed on September 25 as 321932@main, replaces the compiled-in list with a content rule list that Apple's WebPrivacy framework supplies and the browser reloads when an update is published. The pull request checks "each non-main-frame, cross-site request against this list" and adds a test named MainFrameNavigationNotBlocked. A tap that navigates the tab through your short link is out of scope; a pixel or script on the landing page is in scope. WebKit has not said which Safari release ships the updatable list.

Reports from the Safari 27 beta also described blocking by destination IP range, for example of bat.bing.com (PPC Land, citing a TAGGRS source review). Apple has not documented it, so treat it as unconfirmed. Link Tracking Protection, which strips click IDs from navigations, is a separate mechanism; we covered it in Safari 27 strips more click IDs.

Link layers set cookies for three reasons: sticky A/B splits (the same visitor keeps seeing variant B), unique-click dedup, and remembering a consent choice. None of them needs a cookie on the redirect host.

  • Sticky splits. Put the variant in the destination URL (?variant=b) and let the landing page, the site the visitor actually uses, remember it if it must. The redirect stays stateless.
  • Unique clicks. Count clicks server-side as requests arrive and report them in aggregate. Separating machines from people is a filtering problem, not a cookie problem; see Security scanners are clicking your email links first.
  • Consent. The redirect hop is the wrong place to collect or echo it. Whether counting needs consent at all is a separate question, covered in Counting clicks on short links can still need consent in the EU.

There is a Safari-specific reason too. WebKit's tracking prevention page names "top frame redirects, often referred to as bounce tracking" as a tracking pattern: ITP "counts the number of unique such redirects" a domain does and classifies on that number. For classified domains, "all website data is deleted" when they have not received user interaction as first party in the last 30 days of browser use. User interaction means "a user click, tap, or keyboard entry on a website", and nobody types into a redirect. A link domain that forwards to many different sites fits the pattern. Apple publishes no thresholds, so nobody can say when a given domain gets classified, but a cookie on a pure redirect host may not survive whatever 27.2 changed.

rii.link serves links on your own domain: a CNAME for a subdomain, A and AAAA or an ALIAS record at the apex (custom domains guide). Analytics capture each click server-side as the request arrives, and visitor IPs are truncated to /24 (IPv4) or /48 (IPv6) before a click is stored. The security page lists no third-party cookies on the redirect path. Counting does not depend on a cookie surviving Safari's caps.

Check your own domain in five minutes

Is your link domain an alias, and does it set cookies?
# a name on your vendor's domain means Safari sees a CNAME to another registrable domain
$ dig +short CNAME go.example.com

# at the apex, compare these addresses with your main site's
$ dig +short A example.com

# every set-cookie line here is a cookie your redirect sets on every click
$ curl -sI https://go.example.com/spring | grep -iE '^(HTTP|location|set-cookie)'

If curl shows a set-cookie, open the link in Safari 27.2, then Web Inspector, Storage tab, Cookies, and read the expiry for your link host. If an older Safari is still installed somewhere, compare: an expiry of seven days or less on a CNAMEd host is the bug. Then check every request your own pages make to the link domain (pixels, beacons, embedded scripts). Those responses are still capped, and 27.2 did not change that.

Written by

Florian

Florian builds rii.link, the routing layer behind short links: redirects, dynamic responses and links that answer AI agents. He writes The Redirect about what happens between a click and its destination.

Get The Redirect by email

Each new article in full, plus a short section about rii.link.
Send me each new article from The Redirect, plus a short section about rii.link. We count clicks on the links in these emails. Unsubscribe in one click at any time. See our privacy policy.
On this page