method
verified_request?
verified_request?()
private
Returns true or false if a request is verified. Checks:
-
Is it a GET or HEAD request? GETs should be safe and idempotent
-
Does the form_authenticity_token match the given token value from the params?
-
Does the X-CSRF-Token header match the form_authenticity_token?