Skip to content
Snippets Groups Projects
Unverified Commit 193547c4 authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Fix CSP issue for Google Analytics (#18295)

parent ab3c3955
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,10 @@
"'unsafe-eval'" ; TODO - we keep working towards removing this entirely
"https://maps.google.com"
"https://apis.google.com"
"https://www.google-analytics.com" ; Safari requires the protocol
"https://*.googleapis.com"
"*.gstatic.com"
(when (public-settings/anon-tracking-enabled)
"https://www.google-analytics.com")
;; for webpack hot reloading
(when config/is-dev?
"localhost:8080")
......@@ -76,6 +77,10 @@
:connect-src ["'self'"
;; MailChimp. So people can sign up for the Metabase mailing list in the sign up process
"metabase.us10.list-manage.com"
;; Google analytics
(when (public-settings/anon-tracking-enabled)
"www.google-analytics.com")
;; Webpack dev server
(when config/is-dev?
"localhost:8080 ws://localhost:8080")]
:manifest-src ["'self'"]}]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment