From d06bce4a44b32a11d6af99ce2ebfcd725c999089 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Tue, 15 Jul 2025 11:51:18 +0800 Subject: [PATCH] chore: disable host whitelist config --- config/application.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/application.rb b/config/application.rb index 05715b6..4b86ad7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -27,11 +27,11 @@ class Application < Rails::Application # Only loads a smaller set of middleware suitable for API only apps. # Middleware like session, flash, cookies can be added back manually. # Skip views, helpers and assets when generating a new resource. - config.hosts = %w[localhost:3000 127.0.0.1:3000 0.0.0.0:3000] - if ENV["HOSTS"].present? - ENV["HOSTS"].split(",").each do |host| - config.hosts << host.strip - end - end + # config.hosts = %w[localhost:3000 127.0.0.1:3000 0.0.0.0:3000] + # if ENV["HOSTS"].present? + # ENV["HOSTS"].split(",").each do |host| + # config.hosts << host.strip + # end + # end end end