instance method
mark_for_same_origin_verification!
Ruby on Rails edge
Since v4.1.16 Private — implementation detail, not part of the public APISignature
mark_for_same_origin_verification!()
GET and QUERY requests are checked for cross-origin JavaScript after rendering.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 584
def mark_for_same_origin_verification! # :doc:
@_marked_for_same_origin_verification = request.get? || verified_query_request?
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 584
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection