简体   繁体   中英

How to see cookies with Google Chrome Inspector?

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM