From c0e85b88548a50cc86f11960f587bd0b41db22a6 Mon Sep 17 00:00:00 2001 From: Philippe Schommers Date: Mon, 11 Sep 2023 23:42:49 +0200 Subject: [PATCH] fix: CSP URL for object entry script --- src/lib/objects/external/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/objects/external/lib.ts b/src/lib/objects/external/lib.ts index 545e1d13..d6d95793 100644 --- a/src/lib/objects/external/lib.ts +++ b/src/lib/objects/external/lib.ts @@ -53,7 +53,7 @@ export const getNPMObject = async ( if (!added['script-src']) { added['script-src'] = '' } - added['script-src'] += ` ${window.location.origin + script}` + added['script-src'] += ` ${script}` return { script,