Похожие чаты

Am i doing it wrong ? line 63

17 ответов

13 просмотров

Well you don't have a full URL here

mohammad- Автор вопроса
Thomas
Well you don't have a full URL here

the error returned shows the url is correct , i have also tried with the full written url still didn't work

mohammad- Автор вопроса
mohammad
screenshot

Response?

mohammad- Автор вопроса

What the body contains? Read it and console.log.

mohammad- Автор вопроса
Edwing123
What the body contains? Read it and console.log.

isn't it just a locked : false ? just as it shows in the response

Network tab man

mohammad- Автор вопроса
Thomas
Network tab man

well had not seen this one :/ but the same token works with axios , maybe these two set cookies differently ?

credentials: "same-origin" ?

Where are you setting a token when using fetch?

mohammad- Автор вопроса
Code Monkey
credentials: "same-origin" ?

i gotta put in the headers object right ? didn't work

mohammad- Автор вопроса
Edwing123
Where are you setting a token when using fetch?

it is set by the server in cookies and is httpOnly so js doesn't have any access to it , but it is being sent as seen in the headers in the pictures i have sent

mohammad
screenshot

Actually it just says invalid token, maybe your token is actually invalid

mohammad- Автор вопроса
Thomas
Actually it just says invalid token, maybe your to...

nope , works with axios i also tried logging in again , token lifetime is about an hour , so i'm sure it's valid

Похожие вопросы

Обсуждают сегодня

At which price point will BCH, an ASIC mined coin, be succeptible to reorg attacks because of low hashrate? $10? $1? $0.1? $0.01?
Kishniev
18
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
зачем же переименовывать ? чтобы кол-во участников возросло или вдруг IBM от этого снова на свифте начнет кодить ? Я не понимаю что страшного в том что свифт гавно, если это т...
Oleh Nerzh
10
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
2
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Hello VIC team, I had previously used the “wallet.tomochain.com” with a ledger connection. Unfortunately, the site is no longer accessible and the ledger account is not visibl...
carpe noctem
7
здравствуйте. совершаю вот такую вещь: strcpy(line, (char)current_number); где current number — неподписанный шорт, line — массив чаров. ругань следующая: main.c:29:30: error...
Roberto's Ширгозиев
13
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Карта сайта