fix: update iframe sandbox attributes to allow popups to escape sandbox

This commit is contained in:
Linus Rath
2026-03-21 20:45:18 +01:00
parent afefbb8d46
commit 8b1b3ad57b
+1 -1
View File
@@ -4449,7 +4449,7 @@ export function EmailViewer({
<iframe
ref={iframeRef}
srcDoc={emailIframeSrcDoc}
sandbox="allow-same-origin allow-popups"
sandbox="allow-same-origin allow-popups allow-popups-to-escape-sandbox"
title="Email content"
className="w-full border-0 rounded"
style={{ minHeight: '100px', colorScheme: isDark && emailHasNativeDarkMode ? 'light dark' : 'light' }}