Commit dfe9f4ef authored by isstuev's avatar isstuev

fix GA csp with regional domains

parent 10293da2
...@@ -9,18 +9,21 @@ export function googleAnalytics(): CspDev.DirectiveDescriptor { ...@@ -9,18 +9,21 @@ export function googleAnalytics(): CspDev.DirectiveDescriptor {
return { return {
'connect-src': [ 'connect-src': [
'*.google-analytics.com',
'*.analytics.google.com',
'https://www.googletagmanager.com', 'https://www.googletagmanager.com',
'https://www.google-analytics.com',
'https://stats.g.doubleclick.net', 'https://stats.g.doubleclick.net',
], ],
'script-src': [ 'script-src': [
// inline script hash, see ui/shared/GoogleAnalytics.tsx // inline script hash, see ui/shared/GoogleAnalytics.tsx
'\'sha256-NTmEg2dBnojQfTYrYJEmp3nG7V66756qPbQMCIBrctk=\'', '\'sha256-NTmEg2dBnojQfTYrYJEmp3nG7V66756qPbQMCIBrctk=\'',
'https://www.googletagmanager.com', 'https://www.googletagmanager.com',
'https://www.google-analytics.com', '*.google-analytics.com',
'*.analytics.google.com',
], ],
'img-src': [ '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