Cloudflare now attaches the Partitioned attribute to the __cf_bm cookie on HTTPS requests that are also eligible for SameSite=None and Secure. The attribute is only added when those conditions are met.
What Changed
The __cf_bm cookie, used by Cloudflare Bot Management, can now be marked as Partitioned. When a browser receives this attribute, the cookie is scoped to the top‑level site that initiated the request, even if the request originates from a third‑party context such as an <iframe>.
Why It Matters for Engineers
Embedding Cloudflare‑protected content inside an iframe causes browsers to treat __cf_bm as a third‑party cookie. Many privacy settings block third‑party cookies, which breaks the continuity of Bot Management checks across requests. With the Partitioned flag, the cookie survives within the embedding site, allowing Bot Management to maintain its state without requiring users to relax third‑party cookie blocking.
Operational and Security Considerations
- Ensure that the origin serves the cookie over HTTPS and includes
SameSite=NoneandSecure, otherwise thePartitionedattribute will not be applied. - Validate that target browsers support the
Partitionedattribute; older browsers will ignore it and fall back to standard third‑party handling. - Monitor cookie logs to confirm that the attribute is present when expected, especially after changes to TLS termination or CDN configuration.
- Recognize that the attribute limits the cookie to the top‑level site, reducing cross‑site tracking risk while still enabling Bot Management functionality.
Related CloudNinjas coverage: security.
What This Means For Practitioners
Review any services that rely on __cf_bm and are delivered via iframes. Verify that your TLS and cookie settings meet the SameSite=None + Secure criteria so the Partitioned flag can be applied. Test embedded flows in browsers with strict third‑party cookie policies to confirm Bot Management continuity. Keep an eye on browser release notes for support updates or deprecations related to the Partitioned attribute.
