document.cookie cannot read all cookies

Answers to questions:

If you can’t read all the cookie content, you should set some cookies on the server side HttpOnly, that is, the client script cannot be read, and can only be read and operated from the server side.

Reason for setting:

 The role of setting HttpOnly is to prevent XSS attacks by preventing JS from reading cookies.

Guess you like

Origin blog.csdn.net/u014165391/article/details/120860957