From aa1f79168b37e2656a0ae9da0ccd2be8a53454df Mon Sep 17 00:00:00 2001 From: VLE2FE Date: Sun, 9 Aug 2020 17:25:32 +0200 Subject: [PATCH] another CSP fix --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2f21958..a749f6c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,7 +56,7 @@ app.use('/api-doc', helmet.contentSecurityPolicy({ } })); // special CSP header for the intro-presentation -app.use('/static/intro-presentation/$|index.html', helmet.contentSecurityPolicy({ +app.use(/\/static\/intro-presentation\/(index.html)?/, helmet.contentSecurityPolicy({ ...defaultHeaderConfig, directives: { defaultSrc: [`'none'`],