Skip to content

Commit

Permalink
Revert "Do not attempt to skip verify_authenticity_token"
Browse files Browse the repository at this point in the history
This reverts commit 6c84ccf.
  • Loading branch information
byroot committed Feb 14, 2019
1 parent dca325a commit f094487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/shipit/api/base_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Shipit
module Api
class BaseController < ActionController::Base
skip_before_action :verify_authenticity_token

include Shipit::Engine.routes.url_helpers
include Rendering
include Cacheable
Expand Down
1 change: 1 addition & 0 deletions app/controllers/shipit/webhooks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Shipit
class WebhooksController < ActionController::Base
skip_before_action :verify_authenticity_token
before_action :check_if_ping, :verify_signature

respond_to :json
Expand Down

0 comments on commit f094487

Please sign in to comment.