From 3588e955c51ade7d8402237ebf2ebce6e29cfd04 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 27 Oct 2023 17:26:25 +0100 Subject: [PATCH] Drop X-Download-Options from default headers --- config/initializers/new_framework_defaults_7_1.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index 700aefeda..56e99e651 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -17,13 +17,13 @@ Rails.application.config.add_autoload_paths_to_load_path = false # Remove the default X-Download-Options headers since it is used only by Internet Explorer. # If you need to support Internet Explorer, add back `"X-Download-Options" => "noopen"`. -# Rails.application.config.action_dispatch.default_headers = { -# "X-Frame-Options" => "SAMEORIGIN", -# "X-XSS-Protection" => "0", -# "X-Content-Type-Options" => "nosniff", -# "X-Permitted-Cross-Domain-Policies" => "none", -# "Referrer-Policy" => "strict-origin-when-cross-origin" -# } +Rails.application.config.action_dispatch.default_headers = { + "X-Frame-Options" => "SAMEORIGIN", + "X-XSS-Protection" => "0", + "X-Content-Type-Options" => "nosniff", + "X-Permitted-Cross-Domain-Policies" => "none", + "Referrer-Policy" => "strict-origin-when-cross-origin" +} # Do not treat an `ActionController::Parameters` instance # as equal to an equivalent `Hash` by default. -- 2.39.5