openvibers/openvibe.network Commits

The CSP allows Cloudflare Web Analytics (browser check, WS-Q task 3): script-src https://static.cloudflareinsights.com loads the beacon Cloudflare injects at the edge, connect-src https://cloudflareinsights.com is where it reports. The network's privacy text already says Cloudflare may measure performance, and Live and Tools allow it; here the policy blocked it and every page view logged a CSP error.

OP OpenVibers committed 26 Sept 2026 · b764d944e0 · 1 file, +4 −1


Changes

ddiff --git a/server/index.js b/server/index.js
iindex 938255da..a2f4ea07 100644
---- a/server/index.js
++++ b/server/index.js
@@@ -127,7 +127,9 @@ app.use(helmet({
contentSecurityPolicy: {
directives: {
defaultSrc: ["'self'"],
-- scriptSrc: ["'self'", "'unsafe-inline'", "https://openvibe.network", "https://openvibe.live", "cdnjs.cloudflare.com", "cdn.jsdelivr.net", "fonts.googleapis.com"],
++ // Cloudflare Web Analytics: Cloudflare injects its beacon at the edge and the privacy text says it may
++ // measure performance; script-src loads the beacon, connect-src is where it reports.
++ scriptSrc: ["'self'", "'unsafe-inline'", "https://openvibe.network", "https://openvibe.live", "cdnjs.cloudflare.com", "cdn.jsdelivr.net", "fonts.googleapis.com", "https://static.cloudflareinsights.com"],
styleSrc: ["'self'", "'unsafe-inline'", "cdnjs.cloudflare.com", "fonts.googleapis.com", "fonts.gstatic.com"],
fontSrc: ["'self'", "fonts.gstatic.com", "cdnjs.cloudflare.com"],
imgSrc: ["'self'", "data:", "blob:"],
@@@ -140,6 +142,7 @@ app.use(helmet({
"https://openvibe.media",
"https://openvibe.community",
"https://openvibe.blog",
++ "https://cloudflareinsights.com", // Cloudflare Web Analytics reports here (see script-src)
],
frameSrc: ["'none'"],
scriptSrcAttr: ["'unsafe-inline'"],