Skip to content

fix: skip Matomo tracking on all localhost subdomains - #184

Merged
marc0olo merged 1 commit into
mainfrom
infra/matomo-localhost-guard
May 4, 2026
Merged

fix: skip Matomo tracking on all localhost subdomains#184
marc0olo merged 1 commit into
mainfrom
infra/matomo-localhost-guard

Conversation

@marc0olo

@marc0olo marc0olo commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Use endsWith("localhost") instead of !== "localhost" in the Matomo guard so tracking is also skipped on *.localhost subdomains (e.g. myapp.localhost), which browsers treat as local
  • Aligns with the same fix applied in fix: skip Matomo tracking on localhost icp-cli#538

Sync recommendation

hand-written

@marc0olo
marc0olo merged commit 4d7fef2 into main May 4, 2026
1 check passed
@marc0olo
marc0olo deleted the infra/matomo-localhost-guard branch May 4, 2026 08:39
aterga pushed a commit that referenced this pull request Sep 2, 2026
The caution said an app publishing no manifest "is still resolved and
described, but none of its canisters is read or called". Two problems, both
raised in review of the companion Terms change.

"None of its canisters is read or called" overclaims. Discovery is HTTPS
requests to the app's origin, and those are served by the app's own frontend
asset canister through the gateway; the x-ic-canister-id header is the
gateway naming the canister that answered. The claim is true of the calls
ICP MCP makes to a canister, which is what the sentence now says.

"Resolved and described" also said nothing a reader could act on. The
caution now names the discovery sources a developer would recognise from
their own app (the gateway header, /env.json, the JS bundle) and states the
consequence #184's own scope note draws: those candidates can no longer be
confirmed, so a manifest is the only route from an app to a canister an
agent can use. That is the concrete cost of not publishing, which is the
thing this caution exists to convey.

Matches App Operator Terms sections 4 and 7 as revised in
dfinity/internetcomputer-org#97 (60ef171).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xpg83AWtkQo34jbMxpX8WB
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