method
verified_request?
v2.2.1 -
Show latest stable
- Class:
ActionController::RequestForgeryProtection
verified_request?()protected
Returns true or false if a request is verified. Checks:
- is the format restricted? By default, only HTML and AJAX requests are checked.
- is it a GET request? Gets should be safe and idempotent
- Does the form_authenticity_token match the given _token value from the params?