instance method skip_forgery_protection

Ruby on Rails 6.1.7.10

Since v5.2.8.1

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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

options opt = {}
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 145
      def skip_forgery_protection(options = {})
        skip_before_action :verify_authenticity_token, options
      end

Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 145 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::RequestForgeryProtection::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close