From 727435569c5fba11bb3b02363c041ee9af49fb39 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 1 Feb 2023 17:51:58 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20rehabilitar=20protecci=C3=B3n=20contra?= =?UTF-8?q?=20dns=20rebinding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lo habíamos deshabilitado en 2022 sin una explicación real y nos impide verificar la procedencia de los archivos. --- config/initializers/hosts.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/initializers/hosts.rb b/config/initializers/hosts.rb index 58ee2e39..db8bd9c4 100644 --- a/config/initializers/hosts.rb +++ b/config/initializers/hosts.rb @@ -1,11 +1,10 @@ # frozen_string_literal: true Rails.application.configure do - next unless ENV['RAILS_ENV'] == 'development' + next Rails.env.test? domain = ENV.fetch('SUTTY', 'sutty.nl') - config.hosts << domain config.hosts << "panel.#{domain}" config.hosts << "api.#{domain}" end