instance method
origin_trusted?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
origin_trusted?()
No documentation comment.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 690
def origin_trusted?
origin = request.origin
origin.present? && forgery_protection_trusted_origins.include?(origin)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 690
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection