From ae22ab5a9d785f14936b79d612550b94507ae539 Mon Sep 17 00:00:00 2001 From: Juan Sebastian velez Posada Date: Thu, 9 Mar 2023 18:08:19 -0500 Subject: [PATCH] fix: on send heartbeat omit credentials, only use the api key store (#176) --- src/core/WakaTimeCore.ts | 1 + src/manifests/chrome.json | 2 +- src/manifests/firefox.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/WakaTimeCore.ts b/src/core/WakaTimeCore.ts index 61fd968..4575e3b 100644 --- a/src/core/WakaTimeCore.ts +++ b/src/core/WakaTimeCore.ts @@ -337,6 +337,7 @@ class WakaTimeCore { try { const response = await fetch(`${config.heartbeatApiUrl}?api_key=${apiKey}`, { body: JSON.stringify(payload), + credentials: 'omit', method: 'POST', }); await response.json(); diff --git a/src/manifests/chrome.json b/src/manifests/chrome.json index 2473b33..041b63a 100644 --- a/src/manifests/chrome.json +++ b/src/manifests/chrome.json @@ -26,5 +26,5 @@ "page": "options.html" }, "permissions": ["alarms", "tabs", "storage", "idle"], - "version": "3.0.5" + "version": "3.0.6" } diff --git a/src/manifests/firefox.json b/src/manifests/firefox.json index a39c920..2b370bf 100644 --- a/src/manifests/firefox.json +++ b/src/manifests/firefox.json @@ -39,5 +39,5 @@ "storage", "idle" ], - "version": "3.0.5" + "version": "3.0.6" }