Set content type header

This commit is contained in:
Nicolas Mowen 2024-08-04 08:14:40 -06:00
parent ce179d737a
commit 29f63bfda9

View File

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