diff options
author | David Yip <yipdw@member.fsf.org> | 2018-04-18 18:48:12 -0500 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-04-18 18:48:12 -0500 |
commit | 16d5217502a09132dc14a3a808036af5dbcb73dd (patch) | |
tree | deb7b81919e5f8082b7d848b0b8df4787d37f001 /app/controllers/home_controller.rb | |
parent | 813da6788e5129579db04e89aac3076902af2c7a (diff) | |
parent | ff87d1bc3ecdb81ff5c523f0964ecf223a503d30 (diff) |
Merge remote-tracking branch 'origin/master' into gs-master
Conflicts: app/controllers/home_controller.rb app/controllers/stream_entries_controller.rb app/javascript/mastodon/locales/ja.json app/javascript/mastodon/locales/pl.json
Diffstat (limited to 'app/controllers/home_controller.rb')
-rw-r--r-- | app/controllers/home_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index a8ec0dcc9..6e331dd2d 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -2,7 +2,9 @@ class HomeController < ApplicationController before_action :authenticate_user! + before_action :set_pack + before_action :set_referrer_policy_header before_action :set_initial_state_json def index @@ -67,4 +69,8 @@ class HomeController < ApplicationController about_path end end + + def set_referrer_policy_header + response.headers['Referrer-Policy'] = 'origin' + end end |