aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-01-24 18:00:04 -0500
committerGitHub <noreply@github.com>2019-01-24 18:00:04 -0500
commit1b7f0283b939773bdc91730f8b0494e37d469de9 (patch)
tree3ee2a2bd8723894d1e8c28daffd5acc01ccc1da7 /actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb
parent36c840057fb46c09457a8b091d2db6351d2efeef (diff)
parentee0d0b1220adda0ee48f67cc4340ff4d702f6ed9 (diff)
downloadrails-1b7f0283b939773bdc91730f8b0494e37d469de9.tar.gz
rails-1b7f0283b939773bdc91730f8b0494e37d469de9.tar.bz2
rails-1b7f0283b939773bdc91730f8b0494e37d469de9.zip
Merge pull request #34994 from schuetzm/host-authorization-only-in-development
Recommend adding the requested domain to hosts whitelist only in deve…
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.erb4
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 %>"