From 29f63bfda9f9dd923bded19cec899538067cfbe0 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 4 Aug 2024 08:14:40 -0600 Subject: [PATCH] Set content type header --- web/public/notifications-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/public/notifications-worker.js b/web/public/notifications-worker.js index 3de3d6815..ab8a6ae44 100644 --- a/web/public/notifications-worker.js +++ b/web/public/notifications-worker.js @@ -46,7 +46,7 @@ self.addEventListener("notificationclick", (event) => { if (event.notification.data) { fetch("/api/reviews/viewed", { method: "POST", - headers: { "X-CSRF-TOKEN": 1 }, + headers: { "Content-Type": "application/json", "X-CSRF-TOKEN": 1 }, body: JSON.stringify({ ids: [event.notification.data.id] }), }); }