# Set 'Referrer-Policy' =\> 'same-origin'

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

<div class="post-metadata">

**Author:** ![OrkoGrayskull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orkograyskull/32/275883_2.png) [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)\
**Post date:** [October 6, 2022, 9:42am UTC](https://meta.discourse.org/t/set-referrer-policy-same-origin/241111/1 "2022-10-06T09:42:39Z")

</div>

Hello there,

I want to set the 'Referrer-Policy header to ‘ **same-origin** ’. This can’t be done via nginx, because it’s set via Redis/Rails.

Default seems:  
`Referrer-Policy' => 'strict-origin-when-cross-origin'`

Is it possible to change this to:  
`Referrer-Policy' => 'same-origin'`

I could not find the string within/outside the container. 🙄

---

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