Skip to content

Commit

Permalink
WIP: check config.hosts value
Browse files Browse the repository at this point in the history
Experimental setting of config.hosts value.
  • Loading branch information
thomasiles committed Apr 4, 2024
1 parent 91672c4 commit 9f4957d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@
config.active_record.dump_schema_after_migration = false

# Enable DNS rebinding protection and other `Host` header attacks.
# config.hosts = [
# "example.com", # Allow requests from example.com
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
# ]
config.hosts << /.*\.forms\.service\.gov\.uk/
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end

0 comments on commit 9f4957d

Please sign in to comment.