Problem Description
Before and after the learning shiro + cas single sign-end separation of the project, can not get the front desk cookie
Gangster seen a lot of questions about the nginx configuration, and later found out that my problem is not so complicated
only a matter of cookie domain and path is
not set the cookie domain and path
After setting the domain, you can access the front end of a cookie
document.cookie
Time of the visit also need to use ip access
http://127.0.0.1:28080
Cookie[] cookies = request.getCookies();
for (int i = 0; i < cookies.length; i++) {
cookies[i].setPath("/");
cookies[i].setDomain("127.0.0.1");
response.addCookie(cookies[i]);
}