1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #43542 from maaslalani/ml-doc-hostauthorization

Link to Host Authorization guides on `blocked_host` page
This commit is contained in:
Rafael Mendonça França 2021-10-26 16:44:50 -04:00 committed by GitHub
commit 08358e0585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -4,4 +4,5 @@
<main role="main" id="container">
<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>
<pre>config.hosts &lt;&lt; "<%= @host %>"</pre>
<p>For more details view: <a href="https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization">the Host Authorization guide</a></p>
</main>

View file

@ -3,3 +3,5 @@ Blocked host: <%= @host %>
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:
config.hosts << "<%= @host %>"
For more details on host authorization view: https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization