mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix google analytics CSP again
This commit is contained in:
@@ -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'"],
|
||||||
@@ -50,10 +51,10 @@ const cspDirectives = {
|
|||||||
],
|
],
|
||||||
'worker-src': ["'self'"],
|
'worker-src': ["'self'"],
|
||||||
// remove report-to & report-uri if you do not want to use Sentry reporting
|
// remove report-to & report-uri if you do not want to use Sentry reporting
|
||||||
// 'report-to': ["'csp-endpoint'"],
|
// 'report-to': ["'csp-endpoint'"],
|
||||||
// 'report-uri': [
|
// 'report-uri': [
|
||||||
// `https://sentry.io/api/${process.env.VITE_SENTRY_PROJECT_ID}/security/?sentry_key=${process.env.VITE_SENTRY_KEY}`,
|
// `https://sentry.io/api/${process.env.VITE_SENTRY_PROJECT_ID}/security/?sentry_key=${process.env.VITE_SENTRY_KEY}`,
|
||||||
// ],
|
// ],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default cspDirectives;
|
export default cspDirectives;
|
||||||
Reference in New Issue
Block a user