From 0b3f397a77957e5904ccf2f9210e36ef751e4ac2 Mon Sep 17 00:00:00 2001 From: Hugh <90424587+HughParry@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:38:47 +0000 Subject: [PATCH] Wildcard exact string for clientDomain returns true (#1502) --- packages/provider/src/tasks/client/clientTasks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/provider/src/tasks/client/clientTasks.ts b/packages/provider/src/tasks/client/clientTasks.ts index dd05abc86..08c7ad4a4 100644 --- a/packages/provider/src/tasks/client/clientTasks.ts +++ b/packages/provider/src/tasks/client/clientTasks.ts @@ -252,6 +252,7 @@ export class ClientTaskManager { isSubdomainOrExactMatch(referrer: string, clientDomain: string): boolean { if (!referrer || !clientDomain) return false; + if (clientDomain === "*") return true; try { const referrerDomain = parseUrl(referrer).hostname.replace(/\.$/, ""); const allowedDomain = parseUrl(clientDomain).hostname.replace(/\.$/, "");