# 设置 'Referrer-Policy' =\> 'same-origin'

**URL:** <https://meta.discourse.org/t/set-referrer-policy-same-origin/241111>\
**Category:** Self-hosting\
**Created:** [2022年十月6日 09:42 UTC](https://meta.discourse.org/t/set-referrer-policy-same-origin/241111 "2022-10-06T09:42:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2022年十月10日 16:31 UTC](https://meta.discourse.org/t/set-referrer-policy-same-origin/241111/3 "2022-10-10T16:31:32Z")

</div>

一个非常糟糕的 hack [这里](https://meta.discourse.org/t/allow-customization-of-referrer-policy/106832/4)，但\n\n你可以在 nginx 中通过添加一个 `proxy_hide_header` 然后跟着你自己的 `add_header` 来解决这个问题。

---

_[View the full topic](https://meta.discourse.org/t/set-referrer-policy-same-origin/241111)._
