Skip to content

Commit be8a8b6

Browse files
authored
fix(sentry): remove sendDefaultPii option to enhance privacy (#205)
1 parent c8c8453 commit be8a8b6

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ if (!process.env.BFF_SENTRY_DSN || process.env.BFF_SENTRY_DSN.trim() === '') {
1616
} else {
1717
Sentry.init({
1818
dsn: process.env.BFF_SENTRY_DSN,
19-
// Setting this option to true will send default PII data to Sentry.
20-
// For example, automatic IP address collection on events
21-
sendDefaultPii: true,
2219
environment: process.env.VITE_SENTRY_ENVIRONMENT,
2320
beforeSend(event) {
2421
if (event.request && event.request.cookies) {

src/mount.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ let sentryRoutes = Routes;
88
if (import.meta.env.VITE_SENTRY_DSN && import.meta.env.VITE_SENTRY_DSN.length > 0) {
99
Sentry.init({
1010
dsn: import.meta.env.VITE_SENTRY_DSN,
11-
// Setting this option to true will send default PII data to Sentry.
12-
// For example, automatic IP address collection on events
13-
sendDefaultPii: true,
1411
environment: import.meta.env.VITE_SENTRY_ENVIRONMENT,
1512
integrations: [
1613
Sentry.reactRouterV7BrowserTracingIntegration({

0 commit comments

Comments
 (0)