We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6cee1c commit 759a8ebCopy full SHA for 759a8eb
rack-protection/lib/rack/protection/authenticity_token.rb
@@ -112,6 +112,8 @@ def accepts?(env)
112
valid_token?(env, env['HTTP_X_CSRF_TOKEN']) ||
113
valid_token?(env, Request.new(env).params[options[:authenticity_param]]) ||
114
( options[:allow_if] && options[:allow_if].call(env) )
115
+ rescue
116
+ false
117
end
118
119
def mask_authenticity_token(session, path: nil, method: :post)
0 commit comments