fix(security): allow wss:// to Clerk in CSP connect-src
Clerk's client SDK opens a WebSocket to the frontend API for session sync; the CSP only allowed https:// to that origin, silently breaking login (blank page, "Connection closed" exception) once enforced.
This commit is contained in:
1 parent
f43541a4cc
commit
5c75d716a8
1 file changed
+1
@@ -26,6 +26,7 @@ function buildCsp(): string {
|
||||
"connect-src": [
|
||||
"'self'",
|
||||
"https://clerk.pawfeed.org",
|
||||
"wss://clerk.pawfeed.org",
|
||||
"https://accounts.pawfeed.org",
|
||||
supabase,
|
||||
"https://stream.mux.com",
|
||||
|
||||
Reference in new issue
Block a user