]> Untitled Git - lemmy-ui.git/commitdiff
Fix safari websocket bug.
authorDessalines <tyhou13@gmx.com>
Thu, 3 Dec 2020 13:59:59 +0000 (07:59 -0600)
committerDessalines <tyhou13@gmx.com>
Thu, 3 Dec 2020 13:59:59 +0000 (07:59 -0600)
src/server/index.tsx

index d3b7750aba4b94296922265976884df765543cba..cc8c3b0bc48a6511c1ba85543aa9e3e9ac46a3d6 100644 (file)
@@ -87,7 +87,7 @@ server.get('/*', async (req, res) => {
   const cspHtml = (
     <meta
       http-equiv="Content-Security-Policy"
-      content="default-src data:; connect-src 'self'; frame-src *; img-src * data:; script-src 'self'; style-src 'self' 'unsafe-inline'"
+      content="default-src data:; connect-src * ws: wss:; frame-src *; img-src * data:; script-src 'self'; style-src 'self' 'unsafe-inline'"
     />
   );