Skip to content
Extraits de code Groupes Projets
Valider ff229aa9 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

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

parent 1c17b932
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -47,6 +47,7 @@ module Mastodon ...@@ -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'
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter