Skip to content

Commit 9f4957d

Browse files
committed
WIP: check config.hosts value
Experimental setting of config.hosts value.
1 parent 91672c4 commit 9f4957d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

config/environments/production.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@
8282
config.active_record.dump_schema_after_migration = false
8383

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

0 commit comments

Comments
 (0)