Commit 3b6776c8 authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Merge pull request #723 from blockscout/ga-csp

fix GA csp with regional domains
parents 91285170 dfe9f4ef
......@@ -9,18 +9,21 @@ export function googleAnalytics(): CspDev.DirectiveDescriptor {
return {
'connect-src': [
'*.google-analytics.com',
'*.analytics.google.com',
'https://www.googletagmanager.com',
'https://www.google-analytics.com',
'https://stats.g.doubleclick.net',
],
'script-src': [
// inline script hash, see ui/shared/GoogleAnalytics.tsx
'\'sha256-NTmEg2dBnojQfTYrYJEmp3nG7V66756qPbQMCIBrctk=\'',
'https://www.googletagmanager.com',
'https://www.google-analytics.com',
'*.google-analytics.com',
'*.analytics.google.com',
],
'img-src': [
'https://www.google-analytics.com',
'*.google-analytics.com',
'*.analytics.google.com',
],
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment