Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-ghosts-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"host": patch
---

Add `wss:` scheme to CSP `connect-src` directive to allow WebSocket connections (e.g. nostr relays, streaming APIs). Plugins declaring `connectSrc` with `wss://` URLs now work through the host without per-request CSP overrides.
1 change: 1 addition & 0 deletions host/src/middleware/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export class SecurityMiddleware extends Context.Tag("host/SecurityMiddleware")<
connectSrc: [
"'self'",
"https:",
"wss:",
...uniqueOrigins,
...wsOrigins,
...cdnOrigins,
Expand Down
Loading