Why set-cookie headers are ignored?
问题 When authenticating, the servers response with a cookie. On localhost (both server and client), no problem, the cookie is received and stored. But when I use an address (pointing to localhost, by using /etc/hosts) instead of localhost for the client, then the cookie is not set. I tried setting the domain field in cookie (with and without appending a dot): tokenOptions = {expires: false, httpOnly: true, domain: ".lch.lch.com"}; But still, even if in firebug I can see the cookie in the server