fix: add check for new worker domains and ignore any origins from them
This commit is contained in:
parent
8e1bd1a200
commit
4410def18c
|
@ -14,6 +14,10 @@ export async function handleIncomingMessage(event: MessageEvent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.origin.endsWith(".module.kernel.lumeweb.com")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!("nonce" in event.data)) {
|
if (!("nonce" in event.data)) {
|
||||||
(event.source as WindowProxy).postMessage(
|
(event.source as WindowProxy).postMessage(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue