fix: on send heartbeat omit credentials, only use the api key store (#176)

This commit is contained in:
Juan Sebastian velez Posada
2023-03-09 18:08:19 -05:00
committed by GitHub
parent c735e2dafa
commit ae22ab5a9d
3 changed files with 3 additions and 2 deletions

View File

@@ -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();