Skip to content

fix: drop Notion telemetry in the browser instead of fake responses#56

Open
erichurkman wants to merge 2 commits into
draphy:v1from
erichurkman:fix/drop-telemetry-in-browser
Open

fix: drop Notion telemetry in the browser instead of fake responses#56
erichurkman wants to merge 2 commits into
draphy:v1from
erichurkman:fix/drop-telemetry-in-browser

Conversation

@erichurkman

Copy link
Copy Markdown

Notion fires telemetry/analytics to notion.so, splunkcloud.com, and statsigapi.net (plus a same-origin /api/v3/ping keepalive). Previously these were rewritten to a same-origin /200/ pseudo endpoint, so every one produced a noisy 200 log line at the proxy even though the response was discarded.

Suppress them entirely in the browser: window.fetch resolves a synthetic 200 with no network call, and XMLHttpRequest.open is redirected to a data: URL. No end user behavior change and Notion hosted pages don't seem to need a keepalive anyway.

This mostly solves a personal annoyance in useless telemetry messages that just get dropped anyway.

erichurkman and others added 2 commits June 30, 2026 14:19
…the proxy

Notion fires fire-and-forget telemetry/analytics to notion.so,
splunkcloud.com, and statsigapi.net (plus a same-origin /api/v3/ping
keepalive). Previously these were rewritten to a same-origin /200/
pseudo endpoint, so every one produced a noisy 200 log line at the proxy
even though the response was discarded.

Suppress them entirely in the browser: window.fetch resolves a synthetic
200 with no network call, and XMLHttpRequest.open is redirected to a
data: URL. No request leaves the browser, nothing reaches the proxy, and
the page is unaffected since these responses were already thrown away.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
file.notion.so and file.notion.com serve signed PDF and attachment
downloads. These are real content, not telemetry, but the blanket
notion.so suppression rule would drop them and leave react-pdf (and any
other attachment fetch) with an empty body, so the in-page PDF viewer
renders nothing.

Exempt these two hosts from suppression before the notion.so check.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant