瀏覽代碼

Remove CSP (#1418)

* remove csp

* remove csp from now.json
David Luzar 5 年之前
父節點
當前提交
0b971ea570
共有 2 個文件被更改,包括 0 次插入8 次删除
  1. 0 4
      now.json
  2. 0 4
      public/index.html

+ 0 - 4
now.json

@@ -18,10 +18,6 @@
         {
           "key": "Referrer-Policy",
           "value": "origin"
-        },
-        {
-          "key": "Content-Security-Policy",
-          "value": "default-src https: data: 'unsafe-inline'; connect-src https://*.excalidraw.com https://*.excalidraw.now.sh wss://excalidraw-socket.herokuapp.com https://excalidraw-socket.herokuapp.com https://sentry.io;"
         }
       ]
     }

+ 0 - 4
public/index.html

@@ -64,10 +64,6 @@
     />
     <!-- OG tags require absolute url for images -->
     <meta name="twitter:image" content="https://excalidraw.com/og-image.png" />
-    <meta
-      http-equiv="Content-Security-Policy"
-      content="block-all-mixed-content; child-src 'self' https://codesandbox.io https://*.csb.app; worker-src 'self'; connect-src 'self' https: wss: http: ws:; default-src 'self'; font-src 'self' data: https: filesystem:; img-src 'self' data: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.googletagmanager.com https://www.google-analytics.com https://codesandbox.io https://*.csb.app https://cdnjs.cloudflare.com; style-src 'self' 'unsafe-inline' https:;"
-    />
     <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
     <link
       href="https://excalidraw-socket.herokuapp.com/socket.io"