aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.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.html.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.html.erb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb4
1 files changed, 2 insertions, 2 deletions
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 @@
<h1>Blocked host: <%= @host %></h1>
</header>
<div id="container">
- <h2>To allow requests to <%= @host %>, add the following configuration:</h2>
- <pre>Rails.application.config.hosts &lt;&lt; "<%= @host %>"</pre>
+ <h2>To allow requests to <%= @host %>, add the following to your environment configuration:</h2>
+ <pre>config.hosts &lt;&lt; "<%= @host %>"</pre>
</div>