This commit is contained in:
Mateusz Gruszczyński committed 2026-10-30 14:41:15 +01:00
1 parent 52d5f1745a
commit 1234aae646
19 files changed
+145 -16

No files matched your search

+1 -1
View File
@@ -562,7 +562,7 @@ function renderMessageBody(detail, forceRemote = false) {
if (hasRemote && !allowRemote && (policy === "ask" || policy === "contacts")) remoteBar.classList.remove("hidden");
const iframe = document.createElement("iframe");
iframe.setAttribute("sandbox", "");
iframe.setAttribute("sandbox", "allow-popups allow-popups-to-escape-sandbox");
iframe.setAttribute("referrerpolicy", "no-referrer");
const imageSources = allowRemote ? "data: cid: https: http:" : "data: cid:";
const csp = `<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${imageSources}; style-src 'unsafe-inline'; font-src data:">`;