Skip to content

Commit 45511fa

Browse files
Merge pull request rails#35935 from y-yagi/fixes_34837
Fix loading `ActionMailbox::BaseController` when CSRF protection is disabled
2 parents 5963b3d + 1b2f173 commit 45511fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionmailbox/app/controllers/action_mailbox/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module ActionMailbox
44
# The base class for all Action Mailbox ingress controllers.
55
class BaseController < ActionController::Base
6-
skip_forgery_protection
6+
skip_forgery_protection if default_protect_from_forgery
77

88
before_action :ensure_configured
99

0 commit comments

Comments
 (0)