1
0
Fork 0
forked from fedi/mastodon

Fix #141 - Add "Server: Mastodon" header to responses

This commit is contained in:
Eugen Rochko 2016-11-10 23:34:33 +01:00
parent 1c17b932fe
commit ff229aa978

View file

@ -47,6 +47,7 @@ module Mastodon
end end
config.action_dispatch.default_headers = { config.action_dispatch.default_headers = {
'Server' => 'Mastodon',
'X-Frame-Options' => 'DENY', 'X-Frame-Options' => 'DENY',
'X-Content-Type-Options' => 'nosniff', 'X-Content-Type-Options' => 'nosniff',
'X-XSS-Protection' => '1; mode=block' 'X-XSS-Protection' => '1; mode=block'