instance method
mark_for_same_origin_verification!
Ruby on Rails 5.2.8.1
Since v4.1.16 PrivateSignature
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 271
def mark_for_same_origin_verification! # :doc:
@marked_for_same_origin_verification = request.get?
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 271
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection