aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/headers/feature-policy/camera/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/http/headers/feature-policy/camera/index.html')
-rw-r--r--files/zh-cn/web/http/headers/feature-policy/camera/index.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/headers/feature-policy/camera/index.html b/files/zh-cn/web/http/headers/feature-policy/camera/index.html
new file mode 100644
index 0000000000..b2c71e2f36
--- /dev/null
+++ b/files/zh-cn/web/http/headers/feature-policy/camera/index.html
@@ -0,0 +1,54 @@
+---
+title: 'Feature-Policy: camera'
+slug: Web/HTTP/Headers/Feature-Policy/camera
+translation_of: Web/HTTP/Headers/Feature-Policy/camera
+---
+<div>{{HTTPSidebar}}</div>
+
+<p><span class="seoSummary">HTTP{{HTTPHeader("Feature-Policy")}} 头当中的<code>camera</code></span>指令控制着当前的文档是否允许使用视频输入设备。当这些策略被开启时,由<span class="seoSummary">{{domxref("MediaDevices.getUserMedia()")}} 返回的{{jsxref("Promise")}}将会reject一个 {{domxref("NotAllowedError")}}错误。</span></p>
+
+<h2 id="语法结构">语法结构</h2>
+
+<pre class="syntaxbox">Feature-Policy: camera &lt;allowlist&gt;;</pre>
+
+<dl>
+ <dt>&lt;allowlist&gt;</dt>
+ <dd>{{page("Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}}</dd>
+</dl>
+
+<h2 id="默认策略">默认策略</h2>
+
+<p>默认值为 <code>'self'。</code></p>
+
+<h2 id="定义">定义</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Feature Policy')}}</td>
+ <td>{{Spec2('Feature Policy')}}</td>
+ <td>最初的定义。</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat('http.headers.Feature-Policy.camera')}}</p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>{{HTTPHeader("Feature-Policy")}} header</li>
+ <li><a href="/en-US/docs/Web/HTTP/Feature_Policy">Feature Policy</a></li>
+ <li><a href="/en-US/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy">Using Feature Policy</a></li>
+</ul>