about summary refs log tree commit diff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-10 05:18:43 +0100
committerGitHub <noreply@github.com>2023-01-10 05:18:43 +0100
commitaefefc74c468ffd90e3ac97bfed5973717138759 (patch)
tree22d89e0b03da8b3d6cea98f8b51bcd5307af05a5 /app/controllers/concerns
parent2bcb081ce8ab42649932404f3a13f69a0b582af9 (diff)
Change referrer-policy to no-referrer application-wide (#23014)
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/web_app_controller_concern.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/concerns/web_app_controller_concern.rb b/app/controllers/concerns/web_app_controller_concern.rb
index cbd522246..f28786f63 100644
--- a/app/controllers/concerns/web_app_controller_concern.rb
+++ b/app/controllers/concerns/web_app_controller_concern.rb
@@ -6,17 +6,12 @@ module WebAppControllerConcern
   included do
     prepend_before_action :redirect_unauthenticated_to_permalinks!
     before_action :set_app_body_class
-    before_action :set_referrer_policy_header
   end
 
   def set_app_body_class
     @body_classes = 'app-body'
   end
 
-  def set_referrer_policy_header
-    response.headers['Referrer-Policy'] = 'origin'
-  end
-
   def redirect_unauthenticated_to_permalinks!
     return if user_signed_in? && current_account.moved_to_account_id.nil?