instance method
skip_forgery_protection
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
skip_forgery_protection(options = {})
Turn off request forgery protection. This is a wrapper for:
skip_before_action :verify_authenticity_token
See skip_before_action for allowed options.
Parameters
-
optionsopt = {}
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 196
def skip_forgery_protection(options = {})
skip_before_action :verify_authenticity_token, options.reverse_merge(raise: false)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 196
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection::ClassMethods