Skip to content

Commit

Permalink
Skip verifying authenticity token
Browse files Browse the repository at this point in the history
Authenticity token are generated as a hidden field in Whitehall forms. As it is not intended for these
POST routes to be called from a form within in the application, these check should be skipped.
  • Loading branch information
leenagupte committed Nov 5, 2019
1 parent 87898ca commit 2ba87a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/admin/export/document_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class Admin::Export::DocumentController < Admin::Export::BaseController
skip_before_action :verify_authenticity_token
self.responder = Api::Responder

def show
Expand Down

0 comments on commit 2ba87a5

Please sign in to comment.