From 09a59721380dd35de16fa9357c0f7c568b93bdfc Mon Sep 17 00:00:00 2001 From: Adam Mohammed Date: Sat, 23 Nov 2024 19:25:38 -0500 Subject: [PATCH] set the proper hosts --- config/environments/production.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index ebacf1d..38274a6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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