Skip to content

Commit 8dd1e02

Browse files
add wildcard to PORT on connect-src (#236)
1 parent 3c9f774 commit 8dd1e02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clients/web/csp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function generateCSP(isDev = false) {
1010
"frame-src": [SELF],
1111
"script-src": isDev ? [SELF, UNSAFE_EVAL] : [SELF],
1212
"style-src": isDev ? [SELF, UNSAFE_INLINE] : [SELF],
13-
"connect-src": [SELF, "127.0.0.1", "ws://localhost:5173/"],
13+
"connect-src": [SELF, "127.0.0.1", "127.0.0.1:*", "ws://localhost:5173/"],
1414
"img-src": [SELF],
1515
"object-src": [NONE],
1616
},

0 commit comments

Comments
 (0)