Browse Source

安全策略

zhangjie 2 years ago
parent
commit
1486ab0810
1 changed files with 4 additions and 1 deletions
  1. 4 1
      public/index.html

+ 4 - 1
public/index.html

@@ -8,7 +8,10 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
     <meta name="apple-mobile-web-app-capable" content="yes" />
     <meta name="apple-mobile-web-app-status-bar-style" content="black" />
-    <meta http-equiv="Content-Security-Policy" content="script-src 'self'" />
+    <meta
+      http-equiv="Content-Security-Policy"
+      content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ;"
+    />
     <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
     <title>知学知考</title>
   </head>