Fix google analytics CSP again

This commit is contained in:
Jade Ellis
2024-06-16 18:40:02 +01:00
parent cb70967b5c
commit e5aa809a07
+2 -1
View File
@@ -5,7 +5,8 @@ const cspDirectives = {
'child-src': ["'self'"], 'child-src': ["'self'"],
'connect-src': ["'self'", "https://*.google-analytics.com"], 'connect-src': ["'self'", "https://*.google-analytics.com"],
// 'connect-src': ["'self'", 'ws://localhost:*', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], // 'connect-src': ["'self'", 'ws://localhost:*', 'https://hcaptcha.com', 'https://*.hcaptcha.com'],
'img-src': ["'self'", 'data:'], 'img-src': ["'self'", 'data:',
'https://*.googletagmanager.com'],
'font-src': ["'self'", 'data:'], 'font-src': ["'self'", 'data:'],
'form-action': ["'self'"], 'form-action': ["'self'"],
'frame-ancestors': ["'self'"], 'frame-ancestors': ["'self'"],