set the proper hosts

This commit is contained in:
2024-11-23 19:25:38 -05:00
parent 18f9984ce0
commit 09a5972138

View File

@@ -96,10 +96,9 @@ Rails.application.configure do
config.active_record.attributes_for_inspect = [ :id ]
# 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 = [
"wedding.fixergrid.net", # Allow requests from example.com
]
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end