]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/secure_headers.rb
Refactor terms declined flash message to use a partial
[rails.git] / config / initializers / secure_headers.rb
index c97762a37233f760c502053f287aa99c083bf679..d3b5a568deabf421ce10a6b3fe89e41558a39912 100644 (file)
@@ -28,6 +28,7 @@ csp_policy[:report_uri] << Settings.csp_report_url if Settings.key?(:csp_report_
 
 SecureHeaders::Configuration.default do |config|
   config.hsts = SecureHeaders::OPT_OUT
+  config.referrer_policy = "strict-origin-when-cross-origin"
 
   if Settings.csp_enforce
     config.csp = csp_policy