Skip to content

Commit 076a762

Browse files
committed
DIGG-456: Add more csp rules for matomo
1 parent f2d0bc3 commit 076a762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utilities/generateCsp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const generateCSP = ({ nonce }: generateCSPProps = {}) => {
4040
"script-src",
4141
`'self' ${
4242
nonce ? `'nonce-${nonce}'` : ""
43-
} 'strict-dynamic' 'unsafe-eval' 'unsafe-inline' https://webbanalys.digg.se https://webbanalys-dashboard.digg.se *.entryscape.com *.dataportal.se *.beta.dataportal.digikube.dgstage.se *.dataportal.dev1.se, 'report-sample' 'self' https://webbanalys-dashboard.digg.se/js/container_hV6fNi9j_preview.js https://webbanalys.digg.se/js/container_hV6fNi9j.js`,
44-
{ prodOnly: true },
43+
} 'strict-dynamic' 'unsafe-eval' 'unsafe-inline' https://webbanalys.digg.se https://webbanalys-dashboard.digg.se *.entryscape.com *.dataportal.se *.beta.dataportal.digikube.dgstage.se *.dataportal.dev1.se 'report-sample' 'self' https://webbanalys-dashboard.digg.se/js/container_hV6fNi9j_preview.js https://webbanalys.digg.se/js/container_hV6fNi9j.js`,
44+
{ prodOnly: false },
4545
);
4646
add(
4747
"script-src-attr",

0 commit comments

Comments
 (0)