openvibers/openvibe.fun Commits

CSP: connect-src allows openvibe.events (the bell's realtime feed) (#65)

OP OpenVibers committed 11 days ago · 8498de648d · 1 file, +1 −1

notification-live.js (openvibe-shared) opens https://openvibe.events/realtime/stream for the bell's live
updates; this site's connect-src left it out, so every page logged a CSP refusal and the bell missed
live notices (found by a sweep of every site's home, 11-02).

Changes

ddiff --git a/server/app.js b/server/app.js
iindex e0c4f8a..88db124 100644
---- a/server/app.js
++++ b/server/app.js
@@@ -114,7 +114,7 @@ async function createApp(opts = {}) {
styleSrc: ["'self'", "'unsafe-inline'", 'https://openvibe.network', 'https://fonts.googleapis.com', 'https://cdnjs.cloudflare.com'],
fontSrc: ["'self'", 'data:', 'https://fonts.gstatic.com', 'https://cdnjs.cloudflare.com'],
imgSrc: ["'self'", 'data:', 'https://openvibe.network', 'https://openvibe.media'],
-- connectSrc: ["'self'", 'https://openvibe.network', 'https://cloudflareinsights.com', 'https://openvibe.live', 'https://openvibe.chat'],
++ connectSrc: ["'self'", 'https://openvibe.network', 'https://cloudflareinsights.com', 'https://openvibe.live', 'https://openvibe.chat', 'https://openvibe.events'],
frameSrc: ["'self'", 'https://openvibe.network'],
frameAncestors: ["'none'"],
objectSrc: ["'none'"],