integrallis / stripe_event

Stripe webhook integration for Rails applications.
https://rubygems.org/gems/stripe_event
MIT License
840 stars 107 forks source link

Skip verify_authenticity_token if default_protect_from_forgery enabled #107

Closed rmm5t closed 6 years ago

rmm5t commented 6 years ago

This is a new default in Rails 5.2. See https://github.com/integrallis/stripe_event/issues/105#issuecomment-361138469

# config/initializers/new_framework_defaults_5_2.rb
Rails.application.config.action_controller.default_protect_from_forgery = true

Fixes #105

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 8f535a3e2c7fb52b0e46402f87ae5203ca43cf9a on rmm5t:105-default_protect_from_forgery into 6647bd04221ce546c348b3eb4233d810a1a6ed85 on integrallis:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 8f535a3e2c7fb52b0e46402f87ae5203ca43cf9a on rmm5t:105-default_protect_from_forgery into 6647bd04221ce546c348b3eb4233d810a1a6ed85 on integrallis:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 8f535a3e2c7fb52b0e46402f87ae5203ca43cf9a on rmm5t:105-default_protect_from_forgery into 6647bd04221ce546c348b3eb4233d810a1a6ed85 on integrallis:master.