From 63501eef1fc19b1703e6970530a798f5103babea Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 29 Nov 2018 23:28:58 -0800 Subject: [PATCH] Remove extra self in csp --- lib/csp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/csp.js b/lib/csp.js index 557acf8..9630219 100644 --- a/lib/csp.js +++ b/lib/csp.js @@ -8,7 +8,7 @@ const createCspHeader = (options, { const scriptHashes = scripts.map(cspHash) const directives = [ ['default-src', origin], - ['script-src', "'self'", origin, ...scriptHashes], + ['script-src', origin, ...scriptHashes], ['img-src', "'self'", origin], ['connect-src', api], ['report-uri', reportUri]