instance method unverified_request_warning_message

Ruby on Rails 7.2.3

Since v7.2.3 Private

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

unverified_request_warning_message()

No documentation comment.

Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 411
      def unverified_request_warning_message
        if valid_request_origin?
          "Can't verify CSRF token authenticity."
        else
          "HTTP Origin header (#{request.origin}) didn't match request.base_url (#{request.base_url})"
        end
      end

Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 411 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::RequestForgeryProtection

Type at least 2 characters to search.

↑↓ navigate · open · esc close