APIdock / Ruby on Rails
/
Browse About
method

protect_against_forgery?

v5.0.0.1 - Show latest stable - Class: ActionController::RequestForgeryProtection
protect_against_forgery?()
protected

Checks if the controller allows forgery protection.

# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 392
      def protect_against_forgery?
        allow_forgery_protection
      end

Related methods

  • Protected methods
  • protectedany_authenticity_token_valid?
  • protectedcompare_with_real_token
  • protectedform_authenticity_param
  • protectedform_authenticity_token
  • protectedhandle_unverified_request
  • protectedmark_for_same_origin_verification!
  • protectedmarked_for_same_origin_verification?
  • protectedmasked_authenticity_token
  • protectednon_xhr_javascript_response?
  • protectednormalize_action_path
  • protectedper_form_csrf_token
  • protectedprotect_against_forgery?
  • protectedreal_csrf_token
  • protectedrequest_authenticity_tokens
  • protectedunmask_token
  • protectedvalid_authenticity_token?
  • protectedvalid_per_form_csrf_token?
  • protectedvalid_request_origin?
  • protectedverified_request?
  • protectedverify_authenticity_token
  • protectedverify_same_origin_request
  • protectedxor_byte_strings
APIdock API Documentation Browser

Track developer experience with Swarmia's DX Core 4 metrics.

© 2026 APIdock