Skip to content

Commit 08358e0

Browse files
authored
Merge pull request rails#43542 from maaslalani/ml-doc-hostauthorization
Link to Host Authorization guides on `blocked_host` page
2 parents 43226af + 93f509a commit 08358e0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
<main role="main" id="container">
55
<h2>To allow requests to <%= @host %> make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:</h2>
66
<pre>config.hosts &lt;&lt; "<%= @host %>"</pre>
7+
<p>For more details view: <a href="https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization">the Host Authorization guide</a></p>
78
</main>

actionpack/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ Blocked host: <%= @host %>
33
To allow requests to <%= @host %> make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:
44

55
config.hosts << "<%= @host %>"
6+
7+
For more details on host authorization view: https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization

0 commit comments

Comments
 (0)