fix: on send heartbeat omit credentials, only use the api key store (#176)
This commit is contained in:
committed by
GitHub
parent
c735e2dafa
commit
ae22ab5a9d
@@ -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();
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@
|
|||||||
"storage",
|
"storage",
|
||||||
"idle"
|
"idle"
|
||||||
],
|
],
|
||||||
"version": "3.0.5"
|
"version": "3.0.6"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user