Skip to content

Commit aef3525

Browse files
committed
Skip DNS rebind protection for health check endpoint
* Ensure host authorization excludes requests to the health check endpoint * The PR is failing because the health check isn't in the list of accepted hosts, we need to intentionally exclude them
1 parent 500c6af commit aef3525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
config.hosts = HostPatterns.allowed_host_patterns
7777

7878
# Skip DNS rebinding protection for the default health check endpoint.
79-
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
79+
config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
8080

8181
# Set ActiveRecord Encryption keys
8282
if ENV.key? "KMS_KEY_ID"

0 commit comments

Comments
 (0)