From 80c59d074fb74dedeb3e9713239ab23bdaa27875 Mon Sep 17 00:00:00 2001 From: 0xPenryn Date: Thu, 18 Jan 2024 18:00:35 -0600 Subject: [PATCH] fix: leading dot for domain check --- packages/core/src/lib/validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/validation.ts b/packages/core/src/lib/validation.ts index 72b19fe2..59c7a2a1 100644 --- a/packages/core/src/lib/validation.ts +++ b/packages/core/src/lib/validation.ts @@ -32,7 +32,7 @@ export function validate_bridge_url(bridge_url: string, is_staging?: boolean): V } // remove once restriction lifted in world app - if (!test_url.hostname.endsWith('worldcoin.org') && !test_url.hostname.endsWith('toolsforhumanity.com')) { + if (!test_url.hostname.endsWith('.worldcoin.org') && !test_url.hostname.endsWith('.toolsforhumanity.com')) { console.warn( "Bridge URL should be a subdomain of worldcoin.org or toolsforhumanity.com. The user's identity wallet may refuse to connect. This is a temporary measure and may be removed in the future." )