Skip to content

Commit 38c44f9

Browse files
committed
fix(api/newsletter): skip authenticity token verification for newsletter subscription creation
1 parent c18a21f commit 38c44f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎app/controllers/folio/api/newsletter_subscriptions_controller.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class Folio::Api::NewsletterSubscriptionsController < Folio::Api::BaseController
44
include Folio::RequiresSession
55
include Folio::Captcha::HasTurnstileValidation
66

7+
skip_before_action :verify_authenticity_token, only: [:create]
78
requires_session_for :newsletter_subscription, only: [:create]
89

910
def create

0 commit comments

Comments
 (0)