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] }), }); }