diff --git a/src/index.tsx b/src/index.tsx index 31f392a1d..c78f5415f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -13,13 +13,11 @@ if (sentryDsn) { dsn: sentryDsn, environment: import.meta.env.MODE, release: import.meta.env.VITE_APP_VERSION, - integrations: [ - Sentry.browserTracingIntegration(), - ], - // Only trace requests to our own Matrix homeserver - tracePropagationTargets: ['localhost', /^https:\/\/matrix\.lotusguild\.org/], - // 5% of transactions — enough signal without burning quota - tracesSampleRate: 0.05, + // browserTracingIntegration omitted — it injects sentry-trace/baggage headers + // into outgoing fetch calls, which breaks Synapse CORS on matrix.lotusguild.org + // No propagation targets — we don't control the Matrix server's CORS allow-list + tracePropagationTargets: [], + tracesSampleRate: 0, // Don't send PII (IPs, usernames) — this is a private chat app sendDefaultPii: false, // Forward Sentry logs to the dashboard