Files
buzz/mobile/ios/BuzzPushKit
Will Pfleger 9bc5740012 fix(mobile): stop notification extension sending cookies to Builderlab (#9741)
Builderlab's hosts set Cloudflare's `__cf_bm` cookie on every response.
The notification extension's sessions are `.ephemeral`, which keeps an
in-memory cookie store, so after the first response every later request
to Builderlab sends the cookie back. The NIP-FI assertion issuer refuses
any request carrying a `Cookie` header with 401 `session_required`, so
the extension's assertions fail and notifications from communities that
require NIP-FI fall back to "Open Buzz to view this message".

- `BuzzRelayAssertionIssuer` now turns off cookie storage and sending
(`httpCookieStorage = nil`, `httpShouldSetCookies = false`) on the
configuration it uses for both the identity-binding check and the
assertion request, whatever session it is given.
- The extension's per-notification relay session gets the same settings,
since the relay is also a Builderlab host.
- The issuer gains a `startDownload` seam, matching
`BuzzNotificationAvatarLoader`'s, and a `BuzzPushKitTests` test checks
that the assertion request carries no `Cookie` header after the identity
check's response sets one.

Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Co-authored-by: Duncan <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@buzz.block.builderlab.xyz>
2026-11-19 16:24:52 -05:00
..