Skip to content

Commit 77d943f

Browse files
committed
Remove CSP hole
1 parent 48a0beb commit 77d943f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/site.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ func cspHeaders(next http.Handler) http.Handler {
319319
cspSrcs := CSPDirectives{
320320
// All omitted fetch csp srcs default to this.
321321
CSPDirectiveDefaultSrc: {"'self'"},
322-
// TODO: @emyrk fix this to only include the primary and proxy domains.
323-
CSPDirectiveConnectSrc: {"'self' ws: wss:"},
322+
CSPDirectiveConnectSrc: {"'self'"},
324323
CSPDirectiveChildSrc: {"'self'"},
325324
// https://github.com/suren-atoyan/monaco-react/issues/168
326325
CSPDirectiveScriptSrc: {"'self'"},

0 commit comments

Comments
 (0)