Fix analytics CSP
This commit is contained in:
parent
793bc08999
commit
0b1ac24cdd
1 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ const rootDomain = process.env.VITE_DOMAIN; // or your server IP for dev
|
|||
const cspDirectives = {
|
||||
'base-uri': ["'self'"],
|
||||
'child-src': ["'self'"],
|
||||
'connect-src': ["'self'"],
|
||||
'connect-src': ["'self'", "https://*.google-analytics.com"],
|
||||
// 'connect-src': ["'self'", 'ws://localhost:*', 'https://hcaptcha.com', 'https://*.hcaptcha.com'],
|
||||
'img-src': ["'self'", 'data:'],
|
||||
'font-src': ["'self'", 'data:'],
|
||||
|
|
@ -38,7 +38,8 @@ const cspDirectives = {
|
|||
],
|
||||
'script-src': [
|
||||
'self',
|
||||
'unsafe-inline' // chrome suggestion
|
||||
'unsafe-inline', // chrome suggestion
|
||||
'https://*.googletagmanager.com'
|
||||
// 'https://*.stripe.com',
|
||||
// 'https://*.facebook.com',
|
||||
// 'https://*.facebook.net',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue