fix(L4): use location.origin for postMessage, one-shot UUID listener
Some checks failed
check / check (push) Failing after 13s

- Content script sends UUID via location.origin instead of "*"
- Inpage UUID listener removes itself after first message to prevent
  malicious pages from overriding the persisted UUID
This commit is contained in:
user
2026-02-27 11:58:57 -08:00
parent 909543e943
commit 27f16191b4
2 changed files with 7 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ if (typeof browser !== "undefined") {
uuid = crypto.randomUUID();
storage.set({ eip6963Uuid: uuid });
}
window.postMessage({ type: "AUTISTMASK_PROVIDER_UUID", uuid }, "*");
window.postMessage({ type: "AUTISTMASK_PROVIDER_UUID", uuid }, location.origin);
});
})();