Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tighten Sentry reporter host allowlist

Manav Rathid1fbdf715437
diff --git a/infra/workers/sentry-reporter/src/index.ts b/infra/workers/sentry-reporter/src/index.ts
index bfe8eeef23..8223731fef 100644
--- a/infra/workers/sentry-reporter/src/index.ts
+++ b/infra/workers/sentry-reporter/src/index.ts
@@ -85,7 +85,7 @@ const mapDSN = (originalBody: string, originalDSNString: string) => {
const isEnteSentryDSN = (dsn: URL) =>
dsn.protocol === "https:" &&
- (dsn.hostname === "sentry.ente.com" || dsn.hostname === "sentry.ente.io");
+ (dsn.host === "sentry.ente.com" || dsn.host === "sentry.ente.io");
const dsnMappings: Record<string, string> = {
// photos-mobile