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 {
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