Skip to content

Commit b1f2cf6

Browse files
committed
fix(csp): askem uses multiple src-endpoints
LIIKUNTA-757. At least in prod mode, it seems the Askem is also using https://data.reactandshare.com to download scripts.
1 parent 9bbfdf3 commit b1f2cf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

next.base.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const nextBaseConfig = ({
159159
// Base CSP directives
160160
const cspDirectives = [
161161
"default-src 'self'",
162-
`script-src 'self' ${isDevelopment ? "'unsafe-eval'" : ''} https://webanalytics.digiaiiris.com https://cdn.reactandshare.com *.youtube.com *.googlesyndication.com *.google-analytics.com *.googletagmanager.com *.gstatic.com`,
162+
`script-src 'self' ${isDevelopment ? "'unsafe-eval'" : ''} https://webanalytics.digiaiiris.com *.reactandshare.com *.youtube.com *.googlesyndication.com *.google-analytics.com *.googletagmanager.com *.gstatic.com`,
163163
"style-src 'self' 'unsafe-inline' https://cdn.reactandshare.com",
164164
"img-src * 'self' data: https:",
165165
"font-src 'self' *.hel.fi *.hel.ninja fonts.gstatic.com https://cdn.reactandshare.com",

0 commit comments

Comments
 (0)