Skip to content

Commit

Permalink
Update http headers (#16)
Browse files Browse the repository at this point in the history
* Update HTTP Headers

* Fix rubocop offenses
  • Loading branch information
Quentinchampenois authored Mar 2, 2022
1 parent 4466b0d commit daab7b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class Application < Rails::Application

config.backup = config_for(:backup).deep_symbolize_keys

config.action_dispatch.default_headers = {
"X-Frame-Options" => "SAMEORIGIN",
"X-XSS-Protection" => "1; mode=block",
"X-Content-Type-Options" => "nosniff"
}

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
Expand Down

0 comments on commit daab7b7

Please sign in to comment.