Fix Web Push subscription deletion endpoint incorrectly expecting anti-CSRF tokens (#39918)

This commit is contained in:
Claire authored and GitHub committed 2026-07-22 14:38:49 +00:00
1 parent 9d51f51cc0
commit 5f5dfd7823
2 files changed
+11

No files matched your search

@@ -6,6 +6,8 @@ class Api::Web::PushSubscriptionsController < Api::Web::BaseController
before_action :destroy_previous_subscriptions, only: :create, if: :prior_subscriptions?
after_action :update_session_with_subscription, only: :create
skip_forgery_protection only: :destroy
def create
@push_subscription = ::Web::PushSubscription.create!(web_push_subscription_params)