We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7ea61f + e133b38 commit d0b6797Copy full SHA for d0b6797
actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -468,7 +468,7 @@ def non_xhr_javascript_response? # :doc:
468
# * Does the `X-CSRF-Token` header match the form_authenticity_token?
469
#
470
def verified_request? # :doc:
471
- !protect_against_forgery? || request.get? || request.head? ||
+ request.get? || request.head? || !protect_against_forgery? ||
472
(valid_request_origin? && any_authenticity_token_valid?)
473
end
474
0 commit comments