From 565dd450124bfc4733a22f31061a41132e6677ac Mon Sep 17 00:00:00 2001 From: Philippe Schommers Date: Thu, 7 Sep 2023 15:30:17 +0200 Subject: [PATCH] fix: entry script CSP for Firefox --- src/lib/objects/external/lib.ts | 1 + src/lib/objects/external/template.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/objects/external/lib.ts b/src/lib/objects/external/lib.ts index 1d37917c..545e1d13 100644 --- a/src/lib/objects/external/lib.ts +++ b/src/lib/objects/external/lib.ts @@ -53,6 +53,7 @@ export const getNPMObject = async ( if (!added['script-src']) { added['script-src'] = '' } + added['script-src'] += ` ${window.location.origin + script}` return { script, diff --git a/src/lib/objects/external/template.html b/src/lib/objects/external/template.html index 7a2bca15..a6215e6d 100644 --- a/src/lib/objects/external/template.html +++ b/src/lib/objects/external/template.html @@ -2,7 +2,7 @@ - +