瀏覽代碼

feat: 安全策略

zhangjie 6 月之前
父節點
當前提交
1da13700b2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/index.html

+ 1 - 1
public/index.html

@@ -8,7 +8,7 @@
   <meta name="renderer" content="webkit|ie-comp|ie-stand" />
   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
   <meta http-equiv="Content-Security-Policy"
-    content="script-src 'self' 'unsafe-inline' 'unsafe-eval' 'blob';" />
+    content="script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self' 'blob';" />
   <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
   <title>知学知考</title>
 </head>