From ee0d0b1220adda0ee48f67cc4340ff4d702f6ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=BCtz?= Date: Sun, 20 Jan 2019 13:04:20 +0100 Subject: Recommend adding the requested domain to hosts whitelist only in development --- .../middleware/templates/rescues/blocked_host.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb') diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb index 2fa78dd385..1fbc107e28 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb @@ -2,6 +2,6 @@

Blocked host: <%= @host %>

-

To allow requests to <%= @host %>, add the following configuration:

-
Rails.application.config.hosts << "<%= @host %>"
+

To allow requests to <%= @host %>, add the following to your environment configuration:

+
config.hosts << "<%= @host %>"
-- cgit v1.2.3