mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-11-26 20:26:24 -08:00
fix(desktop): allow ws: in CSP for http:// self-hosted instances
This commit is contained in:
1 file changed
+4
@@ -103,6 +103,10 @@ export function buildLocalAppCSP({nonce, cleartextInstanceOrigins = []}: LocalAp
|
||||
extendFrom(connect, CONNECT_SOURCES);
|
||||
extendFrom(connect, DESKTOP_CEILING_CONNECT_SOURCES);
|
||||
extendFrom(connect, cleartextSources);
|
||||
extendFrom(
|
||||
connect,
|
||||
cleartextSources.map((source) => `ws:${source.slice('http:'.length)}`),
|
||||
);
|
||||
directives.push(`connect-src ${connect.join(' ')}`);
|
||||
|
||||
const frame = [SELF_SOURCE];
|
||||
|
||||
Reference in new issue
Block a user