]> cat aescling's git repositories - mastodon.git/commitdiff
disable legacy XSS filtering (#17289)
authorWonderfall <wonderfall@protonmail.com>
Mon, 24 Jan 2022 12:14:26 +0000 (13:14 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Jan 2022 12:14:26 +0000 (13:14 +0100)
Browsers are phasing out X-XSS-Protection, but Safari and IE still support it.

config/environments/production.rb

index 7e58c2b1ce6430dc816e61c7fb562d0746702aeb..7fe3810406a7ecad0f9688ffa38b3a42c38c9680 100644 (file)
@@ -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=()',
   }