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:
admin committed 2026-08-10 08:02:11 +02:00
1 parent f43541a4cc
commit 5c75d716a8
1 file changed
+1
+1
View File
@@ -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",