Remove sandbox mode settings and iframe sandbox branching

This commit is contained in:
2026-02-18 23:48:49 +08:00
parent 37ae0a9769
commit a183474fda
5 changed files with 14 additions and 44 deletions

View File

@@ -2,9 +2,7 @@ export function getTrustedOrigin() {
return window.location.origin;
}
export function getIframeTargetOrigin(iframe) {
const sandbox = iframe?.getAttribute?.('sandbox') || '';
if (sandbox && !sandbox.includes('allow-same-origin')) return 'null';
export function getIframeTargetOrigin() {
return getTrustedOrigin();
}