From 1b353d0b46d938691a97ae6dec16aa7681721977 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sun, 5 Dec 2021 20:09:09 -1000 Subject: [PATCH] include unsafe-eval origin for isolated documents --- src/html.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html.rs b/src/html.rs index 36654ea..52075b9 100644 --- a/src/html.rs +++ b/src/html.rs @@ -83,7 +83,7 @@ pub fn compose_csp(options: &Options) -> String { let mut string_list = vec![]; if options.isolate { - string_list.push("default-src 'unsafe-inline' data:;"); + string_list.push("default-src 'unsafe-eval' 'unsafe-inline' data:;"); } if options.no_css {