4

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?

GibboK
  • 71,848
  • 143
  • 435
  • 658
  • 1
    Are you saying that the site has cookies but Inspector isn't showing them? – Blender Mar 04 '13 at 07:10
  • Yes, I cannot see it under the inspector in the resource tab. – GibboK Mar 04 '13 at 07:11
  • Did you click the arrow on the left? – Blender Mar 04 '13 at 07:12
  • Thanks for your link, yes I tried no success. Help me to understand.. Could you confirm when using Resource/Cookies I should be able to see all the cookies for my website...correct? Even if the page I am testing is on LocalHost? – GibboK Mar 04 '13 at 07:19
  • Could be a similar problem http://stackoverflow.com/questions/7346919/chrome-localhost-cookie-not-being-set ?? – GibboK Mar 04 '13 at 07:23
  • "Resources/Cookies" only appears to show the cookies that are available at the current URL / the current request (basically what is in the HTTP request header). If a cookie is only available on a different _path_ then it will not be shown here. If you need to see _all cookies on the domain_ then you need to open Settings > Content Settings > All cookies and site data... – MrWhite Oct 13 '15 at 10:17

2 Answers2

1

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

Community
  • 1
  • 1
GibboK
  • 71,848
  • 143
  • 435
  • 658
1

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

eb80
  • 4,700
  • 5
  • 25
  • 30