fixed bookmarklet

This commit is contained in:
vabene1111
2022-08-04 18:45:40 +02:00
parent 3ec4afb02f
commit f7af0741fe
6 changed files with 13 additions and 9 deletions

View File

@@ -28,7 +28,7 @@
const xhr = new XMLHttpRequest();
xhr.open('POST', url, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.setRequestHeader('Authorization', 'Token ' + token);
xhr.setRequestHeader('Authorization', 'Bearer ' + token);
// listen for `onload` event
xhr.onload = () => {