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
What is the error?
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
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?
i gotta put in the headers object right ? didn't work
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
nope , works with axios i also tried logging in again , token lifetime is about an hour , so i'm sure it's valid
Обсуждают сегодня