Skip to content

Commit

Permalink
Merge pull request #1431 from alphagov/revert-1416-add-hosts
Browse files Browse the repository at this point in the history
Revert "Configure hosts for application"
  • Loading branch information
beccapearce authored Oct 22, 2024
2 parents 7bde208 + 670afe8 commit 0e83b96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
config.active_record.dump_schema_after_migration = false

# Enable DNS rebinding protection and other `Host` header attacks.
config.hosts = [
/local-links-manager\..*\.gov.uk$/,
]

# config.hosts = [
# "example.com", # Allow requests from example.com
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
# ]
# Skip DNS rebinding protection for the default health check endpoint.
config.host_authorization = { exclude: ->(request) { request.path.match?("^\/healthcheck") } }
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end

0 comments on commit 0e83b96

Please sign in to comment.