Chrome doesn't create cookie for domain=localhost in broken https Chrome doesn't create cookie for domain=localhost in broken https google-chrome google-chrome

Chrome doesn't create cookie for domain=localhost in broken https


Explicit setting domain cookie on localhost doesn't work for chrome.

From this:

You can only set domain cookies for registry controlled domains, i.e. something ending in .com or so, but not IPs or intranet hostnames like localhost


Try to set

cookie_domain = ""

By this the cookie can be created and will work.

I've tried it and it was working fine.


I guess the easiest workaround for this is to add an entry to the hosts file, like

127.0.0.1    localhost.com    

and then calling http://localhost.com/ instead of just localhost.

but having said that, this restriction is ridiculous IMO.