mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-28 14:13:09 -05:00
Fix Web Push subscription deletion endpoint incorrectly expecting anti-CSRF tokens (#39918)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user