[ Host authorization ]
This commit is contained in:
parent
25db02e2a1
commit
551062f92e
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ Warden::Strategies.add(:password) do
|
|||
end
|
||||
|
||||
class TonTon::App < Precious::App
|
||||
set :host_authorization, { permitted_hosts: ['localhost', 'mytonton.com.br'] }
|
||||
|
||||
use Warden::Manager do |manager|
|
||||
manager.default_strategies :password
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue