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.
1 parent 8ce7adf commit 2f4d080Copy full SHA for 2f4d080
1 file changed
config/initializers/omniauth.rb
@@ -1,6 +1,6 @@
1
Rails.application.config.middleware.use OmniAuth::Builder do
2
OmniAuth.config.allowed_request_methods = [:post]
3
4
- OmniAuth.config.request_validation_phase = OmniAuth::AuthenticityTokenProtection.new(key: :_csrf_token)
+ OmniAuth.config.request_validation_phase = Rails.env.test? ? nil : OmniAuth::AuthenticityTokenProtection.new(key: :_csrf_token)
5
end
6
0 commit comments