Reputation: 73908
I am using Google Chrome Web Inspector to debug a web page.
In tab network, I am able to see a call to a Server API and detect Request Cookies and Response Cookies for that URL, os I suppose a cookies has been saved in the browser, but if I visit the Resource section under Cookies I can see any... this site has no cookies
Could you provide me more information?
Upvotes: 4
Views: 6456
Reputation: 4738
The root issue for why a cookie is showing in 127.0.0.1 and not localhost has to do with the domain of the cookie. When a cookie is set, one sets the domain of the cookie and I suspect the server is setting the domain for 127.0.0.1 and not localhost
Upvotes: 1
Reputation: 73908
I solved replacing
http://localhost:8888/
with
http://127.0.0.1:8888/
now I am able to set cookies for my webpage o my local dev environment.
This question help me to resolve the problem Chrome localhost cookie not being set
Upvotes: 1