My broker configuration is as follows:
I tried to modify the local Host, map under the two systems to a domain level 3 domains respectively, and the secondary domain name, sharing the cookie is allowed, but the actual environment in which a need external mapping to the Internet, so it doesn't work, other such as redis for sharing session, oauth2 framework to realize single sign-on might not consider for time reason, also, every brother please help and see where the problem is now
CodePudding user response:
The backend implementation, system A to system B comes after login sessionId as cookies to jump B system, but because the cross-domain cause cookies can't pass in the past,cookies cokie=new Cookie (" JSESSIONID_SHIRO, "sessionId);
Cokie. SetDomain (domain);
Cokie. SetPath (/);
The response addCookie (cokie);
+ path response. SendRedirect (" http://192.168.101.4:8080/window/");