instance method
verified_with_legacy_token?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
verified_with_legacy_token?()
No documentation comment.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 655
def verified_with_legacy_token?
case sec_fetch_site_value
when "same-origin", "same-site"
true
when "cross-site"
origin_trusted?
else # "none" or missing
instrument_csrf_token_fallback
any_authenticity_token_valid?
end
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 655
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection