При создании тикета, если нет у клиента токена, то хедер authorization вовсе не нужно слать #3

Open
opened 2025-03-16 00:42:55 +00:00 by skeris · 0 comments
Owner

делать на мейне. не ветвиться, пушить сразу как пояфиксишь.

смари

fetch("https://hub.pena.digital/heruvym/v1.0.0/create", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
    "authorization": "Bearer",
    "content-type": "application/json",
    "sec-ch-ua": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Google Chrome\";v=\"132\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Linux\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://hub.pena.digital/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"Title\":\"Unauth title\",\"Message\":\"test\",\"System\":false}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

этот запрос не работает

fetch("https://hub.pena.digital/heruvym/v1.0.0/create", {
  "headers": {
    "accept": "application/json, text/plain, */*",
    "accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
    "content-type": "application/json",
    "sec-ch-ua": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Google Chrome\";v=\"132\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Linux\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://hub.pena.digital/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"Title\":\"Unauth title\",\"Message\":\"test\",\"System\":false}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

а этот работает. вот сейчас в текущем местном мейне хаба происходит первый запрос, если не регался ещё

делать на мейне. не ветвиться, пушить сразу как пояфиксишь. смари ``` fetch("https://hub.pena.digital/heruvym/v1.0.0/create", { "headers": { "accept": "application/json, text/plain, */*", "accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7", "authorization": "Bearer", "content-type": "application/json", "sec-ch-ua": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Google Chrome\";v=\"132\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Linux\"", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, "referrer": "https://hub.pena.digital/", "referrerPolicy": "strict-origin-when-cross-origin", "body": "{\"Title\":\"Unauth title\",\"Message\":\"test\",\"System\":false}", "method": "POST", "mode": "cors", "credentials": "include" }); ``` этот запрос не работает ``` fetch("https://hub.pena.digital/heruvym/v1.0.0/create", { "headers": { "accept": "application/json, text/plain, */*", "accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7", "content-type": "application/json", "sec-ch-ua": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Google Chrome\";v=\"132\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Linux\"", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin" }, "referrer": "https://hub.pena.digital/", "referrerPolicy": "strict-origin-when-cross-origin", "body": "{\"Title\":\"Unauth title\",\"Message\":\"test\",\"System\":false}", "method": "POST", "mode": "cors", "credentials": "include" }); ``` а этот работает. вот сейчас в текущем местном мейне хаба происходит первый запрос, если не регался ещё
skeris added the
Kind/Bug
label 2025-03-16 00:42:55 +00:00
Nastya was assigned by skeris 2025-03-16 00:42:55 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PenaSide/front-hub#3
No description provided.