From ce179d737a431736255c6d7f8df1a80adeeef170 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 4 Aug 2024 07:33:54 -0600 Subject: [PATCH] Set header --- web/public/notifications-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/public/notifications-worker.js b/web/public/notifications-worker.js index db210fe7a..3de3d6815 100644 --- a/web/public/notifications-worker.js +++ b/web/public/notifications-worker.js @@ -46,6 +46,7 @@ self.addEventListener("notificationclick", (event) => { if (event.notification.data) { fetch("/api/reviews/viewed", { method: "POST", + headers: { "X-CSRF-TOKEN": 1 }, body: JSON.stringify({ ids: [event.notification.data.id] }), }); }