]> Untitled Git - lemmy-ui.git/commitdiff
Fixing CSP
authorDessalines <tyhou13@gmx.com>
Wed, 2 Dec 2020 14:40:51 +0000 (08:40 -0600)
committerDessalines <tyhou13@gmx.com>
Wed, 2 Dec 2020 14:40:51 +0000 (08:40 -0600)
src/server/index.tsx

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