Lançamento da versão 1.0.10

This commit is contained in:
2026-08-28 10:39:51 -03:00
parent 904e210ac8
commit 086cad88f5
11 changed files with 476 additions and 65 deletions

View File

@@ -81,7 +81,7 @@
}
for (const origin of candidates) {
if (ALLOWED_TOP_MESSAGE_ORIGINS.has(origin)) {
if (isAllowedTopMessageOrigin(origin)) {
return origin;
}
}
@@ -89,6 +89,25 @@
return "";
}
function isAllowedTopMessageOrigin(origin) {
if (ALLOWED_TOP_MESSAGE_ORIGINS.has(origin)) {
return true;
}
try {
const url = new URL(origin);
const hostname = url.hostname.toLowerCase();
return (
url.protocol === "https:" &&
hostname.endsWith(".oraclecloud.com") &&
hostname.includes(".fa.")
);
} catch {
return false;
}
}
function safePostToTop(payload) {
const targetOrigin = getAllowedTopMessageOrigin();