X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f91dd6afc21fdf17cd9c3fa71784540d3f245ddf..0876ea0beece91be4cbd603e13951cfe6bc8e773:/config/initializers/secure_headers.rb diff --git a/config/initializers/secure_headers.rb b/config/initializers/secure_headers.rb index c97762a37..d3b5a568d 100644 --- a/config/initializers/secure_headers.rb +++ b/config/initializers/secure_headers.rb @@ -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