From 91fd4f7411f21ff75f989859196a907603786244 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Wed, 15 Nov 2023 14:13:25 -0600 Subject: [PATCH] [PM-3575] Public Suffix List Incorrectly Detected (#6735) --- libs/common/src/platform/misc/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/common/src/platform/misc/utils.ts b/libs/common/src/platform/misc/utils.ts index 6711e78c3b7..2feb6288af2 100644 --- a/libs/common/src/platform/misc/utils.ts +++ b/libs/common/src/platform/misc/utils.ts @@ -289,7 +289,10 @@ export class Utils { } try { - const parseResult = parse(uriString, { validHosts: this.validHosts }); + const parseResult = parse(uriString, { + validHosts: this.validHosts, + allowPrivateDomains: true, + }); if (parseResult != null && parseResult.hostname != null) { if (parseResult.hostname === "localhost" || parseResult.isIp) { return parseResult.hostname;