You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the Rails app in production, the WebhookController errors: Before process_action callback :verify_authenticity_token has not been defined
As far as I can tell, this occurs in Rails 5.2 and up, since new configuration defaults were added, particularly this one:
# Add default protection from forgery to ActionController::Base instead of in# ApplicationController.Rails.application.config.action_controller.default_protect_from_forgery=true
which causes this if statement to be triggered in WebhookController:
When running the Rails app in production, the WebhookController errors:
Before process_action callback :verify_authenticity_token has not been defined
As far as I can tell, this occurs in Rails 5.2 and up, since new configuration defaults were added, particularly this one:
which causes this if statement to be triggered in WebhookController:
I'd try to make a pull request but I'm not sure what would fix this.
The text was updated successfully, but these errors were encountered: