From the setDomain method of the cookie, we can know that localhost is not a domain name

http://www.baidu.com where baidu.com is a domain name. So is localhost in http://localhost a domain name? I googled it and found that someone said it was a domain name. So I added the cookie like this after logging in in my web project:

Refer to this article for details



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325981178&siteId=291194637