Merge pull request #17941 from bforbis/ga4-documentation

update CSP for google-analytics
This commit is contained in:
Patrik Oldsberg
2023-05-31 21:31:50 +02:00
committed by GitHub
+7 -1
View File
@@ -61,7 +61,13 @@ backend:
csp:
connect-src: ["'self'", 'http:', 'https:']
# Add these two lines below
script-src: ["'self'", "'unsafe-eval'", 'https://www.google-analytics.com']
script-src:
[
"'self'",
"'unsafe-eval'",
'https://www.google-analytics.com',
'https://www.googletagmanager.com',
]
img-src: ["'self'", 'data:', 'https://www.google-analytics.com']
```