method
allowed_redirect_hosts=
v8.1.1 -
Show latest stable
- Class:
ActionController::Redirecting::ClassMethods
allowed_redirect_hosts=(hosts)public
No documentation available.
# File actionpack/lib/action_controller/metal/redirecting.rb, line 37
def allowed_redirect_hosts=(hosts)
hosts = hosts.dup.freeze
self._allowed_redirect_hosts = hosts
self.allowed_redirect_hosts_permissions = if hosts.present?
ActionDispatch::HostAuthorization::Permissions.new(hosts)
end
end