aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-client/src')
-rw-r--r--packages/meshbay-client/src/main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-client/src/main.js b/packages/meshbay-client/src/main.js
index 80f49e4..5e1120b 100644
--- a/packages/meshbay-client/src/main.js
+++ b/packages/meshbay-client/src/main.js
@@ -133,7 +133,9 @@ const CSP = [
`img-src 'self' data: blob: ${RECAPTCHA_SRC}`,
"media-src 'self' blob:",
"font-src 'self'",
- "connect-src 'self' https: wss:",
+ // Every hub call leaves from this process, so the page connects to nothing
+ // but its own files and reCAPTCHA; see the hub's webapp.CSP.
+ `connect-src 'self' ${RECAPTCHA_SRC}`,
"worker-src 'self'",
// `blob:` here and in `frame-src` are one thing, not two: the PDF preview.
//