aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/document_directive
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/glossary/document_directive')
-rw-r--r--files/zh-cn/glossary/document_directive/index.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/document_directive/index.html b/files/zh-cn/glossary/document_directive/index.html
new file mode 100644
index 0000000000..a1559aba43
--- /dev/null
+++ b/files/zh-cn/glossary/document_directive/index.html
@@ -0,0 +1,36 @@
+---
+title: Document directive
+slug: Glossary/Document_directive
+tags:
+ - CSP
+ - HTTP
+ - 安全
+translation_of: Glossary/Document_directive
+---
+<p><strong>{{Glossary("CSP")}} 文档指令(document directives)</strong> 出现于 {{HTTPHeader("Content-Security-Policy")}} 首部,支配着应用安全策略的文档的属性或者 <a href="/en-US/docs/Web/API/Web_Workers_API">worker</a> 运行环境的特征。</p>
+
+<p>文档指令不将 {{CSP("default-src")}} 指令作为回退机制。</p>
+
+<p>以下 CSP 指令属于文档指令:</p>
+
+<ul>
+ <li>{{CSP("base-uri")}}</li>
+ <li>{{CSP("plugin-types")}}</li>
+ <li>{{CSP("sandbox")}}</li>
+ <li>{{CSP("disown-opener")}}</li>
+</ul>
+
+<div>
+<h2 id="更多内容">更多内容</h2>
+
+<ul>
+ <li>{{HTTPHeader("Content-Security-Policy")}}</li>
+ <li>其他类型的指令:
+ <ul>
+ <li>{{Glossary("Fetch directive")}}</li>
+ <li>{{Glossary("Navigation directive")}}</li>
+ <li>{{Glossary("Reporting directive")}}</li>
+ </ul>
+ </li>
+</ul>
+</div>