instance method
any_authenticity_token_valid?
Ruby on Rails 7.0.10
Since v5.2.8.1 PrivateSignature
any_authenticity_token_valid?()
Checks if any of the authenticity tokens from the request are valid.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 346
def any_authenticity_token_valid? # :doc:
request_authenticity_tokens.any? do |token|
valid_authenticity_token?(session, token)
end
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 346
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection