method

allowed_redirect_hosts=

rails latest stable - Class: ActionController::Redirecting::ClassMethods

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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