- fix: new tasks counter was not working in old browsers (like chrome 49) due to the absent cookies in fetch

This commit is contained in:
maxpozdeev 2023-10-09 11:09:17 +03:00
parent 9a1970d3b1
commit ae6a4ef2a4

View file

@ -2722,6 +2722,7 @@ function newTaskCounter()
fetch(_mtt.apiUrl + 'tasks/newCounter', {
method: 'POST',
credentials: 'same-origin', // old browsers
headers: {
'Content-Type': 'application/json',
'MTT-Token': _mtt.options.token,