为什么Spring Boot会将JSESSIONID附加到Amazon Elastic Beanstalk上的路径而不是本地?

时间:2019-05-03 20:21:21

标签: spring amazon-web-services spring-boot amazon-elastic-beanstalk

Spring Boot为什么将;jsessionid附加到AWS中的路径而不是本地?当这样做时,Spring Security会抱怨并引发错误。

$ curl -i -k https://app.country-region-9.elasticbeanstalk.com/admin/login -d username=admin -d password=admin
HTTP/1.1 302 Found
Location: /admin/home;jsessionid=48849AE35B8900FAD2389A7839C26742
Set-Cookie: JSESSIONID=48849AE35B8900FAD2389A7839C26742; Path=/; Secure; HttpOnly

$ curl -i -k http://127.0.0.1:8080/admin/login -d username=admin -d password=admin
HTTP/1.1 302
Set-Cookie: JSESSIONID=95E6D82DC7406C2A472DC6FC9A056A9C; Path=/; HttpOnly
Location: http://127.0.0.1:8080/admin/home

我有

server.session.tracking-modes=cookie

Spring Boot 1.5.20

0 个答案:

没有答案