fix: add check for new worker domains and ignore any origins from them

This commit is contained in:
Derrick Hammer 2023-09-19 21:46:32 -04:00
parent 8e1bd1a200
commit 4410def18c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ export async function handleIncomingMessage(event: MessageEvent) {
return;
}
if (event.origin.endsWith(".module.kernel.lumeweb.com")) {
return;
}
if (!("nonce" in event.data)) {
(event.source as WindowProxy).postMessage(
{