mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Link to Host Authorization guides on blocked_host
page
Provide additional configuration options on hosts, namely `RAILS_DEVELOPMENT_HOSTS` environment variable introduced in https://github.com/rails/rails/pull/41560
This commit is contained in:
parent
6e83d065ae
commit
93f509a600
2 changed files with 3 additions and 0 deletions
|
@ -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 << "<%= @host %>"</pre>
|
||||
<p>For more details view: <a href="https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization">the Host Authorization guide</a></p>
|
||||
</main>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue