This commit is contained in:
kandrusyak
2022-06-28 16:38:05 +03:00
parent d617de75b5
commit 3a4ed9daf9
10 changed files with 94 additions and 51 deletions

View File

@@ -32,7 +32,7 @@ function request(method, url, headers = {}, token, body) {
requestOptions = {
method: method,
headers: {
authorization: `IDNTTY ${token}`,
Authorization: `IDNTTY ${token}`,
...headers
},
signal: controller.signal,
@@ -42,7 +42,7 @@ function request(method, url, headers = {}, token, body) {
requestOptions = {
method: method,
headers: {
authorization: `IDNTTY ${token}`,
Authorization: `IDNTTY ${token}`,
Accept: 'application/json',
'Content-Type': 'application/json',
...headers