Skip to content

Commit

Permalink
disable legacy XSS filtering (#17289)
Browse files Browse the repository at this point in the history
Browsers are phasing out X-XSS-Protection, but Safari and IE still support it.
  • Loading branch information
Wonderfall authored and ClearlyClaire committed Feb 2, 2022
1 parent d7adbf5 commit b99c58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
'Server' => 'Mastodon',
'X-Frame-Options' => 'DENY',
'X-Content-Type-Options' => 'nosniff',
'X-XSS-Protection' => '1; mode=block',
'X-XSS-Protection' => '0',
}

config.x.otp_secret = ENV.fetch('OTP_SECRET')
Expand Down

0 comments on commit b99c58b

Please sign in to comment.