I was creating jwt login authentication, I have created jwt token and I am setting the token cookies by using res.cookie
Where accesstoken is my jwt token value. This is my snip of server.js
And I am using Axios in the frontend, here is the snip
Now, I click login everyting works fine, I get the user data in console with no error. But, in application>> Cookies tab i get no cookies. But I can see the token in network tab under set-cookie
I don't know what happened, initially, I was able to get cookies by using the same code. Once I was trying to remove the cookie from the frontend, I used this method Delete cookie by name?
by @Stephen Ostermiller. I was able to remove the cookie successfully, but when I was trying to set the cookie again, I was unable to do that, then I removed the delete cookie method. But still from that time onward I was not able to set cookies....pls hep