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 { try {
const response = await fetch(`${config.heartbeatApiUrl}?api_key=${apiKey}`, { const response = await fetch(`${config.heartbeatApiUrl}?api_key=${apiKey}`, {
body: JSON.stringify(payload), body: JSON.stringify(payload),
credentials: 'omit',
method: 'POST', method: 'POST',
}); });
await response.json(); await response.json();

View File

@@ -26,5 +26,5 @@
"page": "options.html" "page": "options.html"
}, },
"permissions": ["alarms", "tabs", "storage", "idle"], "permissions": ["alarms", "tabs", "storage", "idle"],
"version": "3.0.5" "version": "3.0.6"
} }

View File

@@ -39,5 +39,5 @@
"storage", "storage",
"idle" "idle"
], ],
"version": "3.0.5" "version": "3.0.6"
} }