instance method
mark_for_same_origin_verification!
Ruby on Rails 4.1.16
Since v4.1.16Signature
mark_for_same_origin_verification!()
GET requests are checked for cross-origin JavaScript after rendering.
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 222
def mark_for_same_origin_verification!
@marked_for_same_origin_verification = request.get?
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 222
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection