# 如何修复Permissions Policy标头？

**URL:** https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618
**Category:** Support
**Created:** [2023年九月20日 20:16 UTC](https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618 "2023-09-20T20:16:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [2023年九月20日 20:16 UTC](https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618/1 "2023-09-20T20:16:33Z")

</div>

关于此处的红色警告：

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/f/4/bf437c6a02f9dc010f81de21559a005519fa728a.png)

[https://securityheaders.com/?q=https%3A%2F%2Fmeta.discourse.org%2F&hide=on&followRedirects=on](https://securityheaders.com/?q=https%3A%2F%2Fmeta.discourse.org%2F&hide=on&followRedirects=on) 同样如此

在我的主域上，我使用 Nginx 添加了标头来解决此问题，但不确定在哪里为我的论坛子域添加此项。

是否可以在管理区域粘贴配置行？

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2023年九月20日 20:29 UTC](https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618/2 "2023-09-20T20:29:15Z")

</div>

几年前有一个关于此问题的讨论：[https://meta.discourse.org/t/floc-network-opt-out/187080。在这篇帖子：https://meta.discourse.org/t/floc-network-opt-out/187080/16?u=simon](https://meta.discourse.org/t/floc-network-opt-out/187080%E3%80%82%E5%9C%A8%E8%BF%99%E7%AF%87%E5%B8%96%E5%AD%90%EF%BC%9Ahttps://meta.discourse.org/t/floc-network-opt-out/187080/16?u=simon) 中有一个关于如何设置 Permissions Policy 标头的建议。

可能还有更多与 Permissions Policy 标头相关的最新主题。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2023年九月20日 20:35 UTC](https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618/3 "2023-09-20T20:35:34Z")

</div>

因为浏览器对它的支持不是很好，所以再投入精力是否还有意义？

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [2023年九月20日 20:42 UTC](https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618/4 "2023-09-20T20:42:28Z")

</div>

谢谢你，西蒙！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年十月20日 20:42 UTC](https://meta.discourse.org/t/how-can-i-fix-the-permissions-policy-header/279618/5 "2023-10-20T20:42:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
