X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ecb53b8692cbaac262fba5b1baa632d7cef5353..0876ea0beece91be4cbd603e13951cfe6bc8e773:/config/initializers/secure_headers.rb?ds=inline 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