about summary refs log tree commit diff
path: root/config/environments/production.rb
diff options
context:
space:
mode:
authorWonderfall <wonderfall@protonmail.com>2022-01-24 13:14:26 +0100
committerGitHub <noreply@github.com>2022-01-24 13:14:26 +0100
commit244726e2e8682454cec6e49712e622fe87c5244f (patch)
tree4442c781e01372a6a477f91959967d4f671694cb /config/environments/production.rb
parentdd63923c0ae3601de76dee5bcf3a83f875584326 (diff)
disable legacy XSS filtering (#17289)
Browsers are phasing out X-XSS-Protection, but Safari and IE still support it.
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 7e58c2b1c..7fe381040 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -118,7 +118,7 @@ Rails.application.configure do
     'Server'                 => 'Mastodon',
     'X-Frame-Options'        => 'DENY',
     'X-Content-Type-Options' => 'nosniff',
-    'X-XSS-Protection'       => '1; mode=block',
+    'X-XSS-Protection'       => '0',
     'Permissions-Policy'     => 'interest-cohort=()',
   }