Skip to content

Commit

Permalink
Wildcard exact string for clientDomain returns true (#1502)
Browse files Browse the repository at this point in the history
  • Loading branch information
HughParry authored Nov 11, 2024
1 parent 554951e commit 0b3f397
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/provider/src/tasks/client/clientTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(/\.$/, "");
Expand Down

0 comments on commit 0b3f397

Please sign in to comment.