From a0be69b932ccb5136e0decf639af610e9e8d72d1 Mon Sep 17 00:00:00 2001 From: Moritz Reich Date: Fri, 25 Jul 2025 11:37:08 +0200 Subject: [PATCH] fix(sentry): remove sendDefaultPii option to enhance privacy --- server.js | 3 --- src/mount.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/server.js b/server.js index d5c4ea32..6debe63a 100644 --- a/server.js +++ b/server.js @@ -16,9 +16,6 @@ if (!process.env.BFF_SENTRY_DSN || process.env.BFF_SENTRY_DSN.trim() === '') { } else { Sentry.init({ dsn: process.env.BFF_SENTRY_DSN, - // Setting this option to true will send default PII data to Sentry. - // For example, automatic IP address collection on events - sendDefaultPii: true, environment: process.env.VITE_SENTRY_ENVIRONMENT, beforeSend(event) { if (event.request && event.request.cookies) { diff --git a/src/mount.ts b/src/mount.ts index b7e1445b..74e9e5f5 100644 --- a/src/mount.ts +++ b/src/mount.ts @@ -8,9 +8,6 @@ let sentryRoutes = Routes; if (import.meta.env.VITE_SENTRY_DSN && import.meta.env.VITE_SENTRY_DSN.length > 0) { Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN, - // Setting this option to true will send default PII data to Sentry. - // For example, automatic IP address collection on events - sendDefaultPii: true, environment: import.meta.env.VITE_SENTRY_ENVIRONMENT, integrations: [ Sentry.reactRouterV7BrowserTracingIntegration({