aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/concerns/web_app_controller_concern.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/web_app_controller_concern.rb')
-rw-r--r--app/controllers/concerns/web_app_controller_concern.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/controllers/concerns/web_app_controller_concern.rb b/app/controllers/concerns/web_app_controller_concern.rb
new file mode 100644
index 000000000..8a6c73af3
--- /dev/null
+++ b/app/controllers/concerns/web_app_controller_concern.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+module WebAppControllerConcern
+ extend ActiveSupport::Concern
+
+ included do
+ before_action :set_body_classes
+ before_action :set_referrer_policy_header
+ end
+
+ def set_body_classes
+ @body_classes = 'app-body'
+ end
+
+ def set_referrer_policy_header
+ response.headers['Referrer-Policy'] = 'origin'
+ end
+end