From 0f1fcce7ce9e7e759746688209ea6958bcc95405 Mon Sep 17 00:00:00 2001 From: dafuga Date: Fri, 19 Jul 2024 13:38:08 -0700 Subject: [PATCH] fix: allowing messages from fullCreationServiceUrl --- src/account-creator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/account-creator.ts b/src/account-creator.ts index a97a8d8..17ca9fa 100644 --- a/src/account-creator.ts +++ b/src/account-creator.ts @@ -50,7 +50,10 @@ export class AccountCreator { return new Promise((resolve, reject) => { const listener = (event: MessageEvent) => { - if (event.origin === this.creationServiceUrl) { + if ( + event.origin === this.creationServiceUrl || + this.fullCreationServiceUrl?.includes(event.origin) + ) { window.removeEventListener('message', listener) this.closeDialog()