From 74d5ed7eb011b97fdc899ea212fa185795342709 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 3 Aug 2026 23:52:46 -0400 Subject: [PATCH] Fix bug with content-type --- static/upvote.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/upvote.js b/static/upvote.js index ee45491..d982637 100644 --- a/static/upvote.js +++ b/static/upvote.js @@ -26,6 +26,9 @@ title: document.querySelector('meta[name="title"]').content, }), credentials: "include", + headers: { + "Content-Type": "application/json", + }, }); if (r.ok) {