diff options
author | Marc Schütz <schuetzm@gmx.net> | 2019-01-20 13:04:20 +0100 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2019-01-23 13:11:35 +0100 |
commit | ee0d0b1220adda0ee48f67cc4340ff4d702f6ed9 (patch) | |
tree | 46e0b84697d657bfa787d66ab8aa5ac42fa8e4a8 /actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb | |
parent | 9608b180bfb36cb459e4aa8d8116a065046e1915 (diff) | |
download | rails-ee0d0b1220adda0ee48f67cc4340ff4d702f6ed9.tar.gz rails-ee0d0b1220adda0ee48f67cc4340ff4d702f6ed9.tar.bz2 rails-ee0d0b1220adda0ee48f67cc4340ff4d702f6ed9.zip |
Recommend adding the requested domain to hosts whitelist only in development
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb index 4e2d1d0b08..a94dd982a7 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb @@ -1,5 +1,5 @@ Blocked host: <%= @host %> -To allow requests to <%= @host %>, add the following configuration: +To allow requests to <%= @host %>, add the following to your environment configuration: - Rails.application.config.hosts << "<%= @host %>" + config.hosts << "<%= @host %>" |