Use a system setting for the Referer policy (#33239)
This commit is contained in:
parent
7d52b24569
commit
2a369a8977
3 changed files with 9 additions and 1 deletions
|
@ -153,7 +153,7 @@ Rails.application.configure do
|
|||
'X-Frame-Options' => 'DENY',
|
||||
'X-Content-Type-Options' => 'nosniff',
|
||||
'X-XSS-Protection' => '0',
|
||||
'Referrer-Policy' => ENV['ALLOW_REFERRER_ORIGIN'] == 'true' ? 'origin' : 'same-origin',
|
||||
'Referrer-Policy' => 'same-origin',
|
||||
}
|
||||
|
||||
# TODO: Remove once devise-two-factor data migration complete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue