From e4176dbf7a8a3b87d32078a72e4349ba9da945b9 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 17 May 2024 20:12:37 -0700 Subject: [PATCH] change live snapshot preview iframe sandbox rules --- archivebox/templates/core/snapshot_live.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/templates/core/snapshot_live.html b/archivebox/templates/core/snapshot_live.html index 05e393cd..33ea3f60 100644 --- a/archivebox/templates/core/snapshot_live.html +++ b/archivebox/templates/core/snapshot_live.html @@ -405,7 +405,7 @@ - + {% endfor %} @@ -463,7 +463,7 @@ if (target.endsWith('.pdf')) { jQuery('#main-frame')[0].removeAttribute('sandbox') } else { - jQuery('#main-frame')[0].sandbox = "allow-scripts allow-forms allow-top-navigation-by-user-activation" + jQuery('#main-frame')[0].sandbox = "allow-same-origin allow-top-navigation-by-user-activation allow-scripts allow-forms" } window.location.hash = getPreviewTypeFromPath(event.currentTarget.querySelector('a'))