From 7fbac92bdd1199159efe9c3a12b4f51722ea0320 Mon Sep 17 00:00:00 2001 From: Kristian Binau Date: Mon, 16 Oct 2023 14:53:44 +0200 Subject: [PATCH] #34 - Try fixing refresh --- script/serviceWorker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/serviceWorker.js b/script/serviceWorker.js index 98fe5cd..d45a530 100644 --- a/script/serviceWorker.js +++ b/script/serviceWorker.js @@ -226,6 +226,9 @@ async function refreshTokens(event) { method: 'POST', signal: controller.signal, credentials: 'include', + headers: { + 'Content-Type': 'application/json', + }, }); event.waitUntil(refreshResponse);