mardi 4 août 2015

Spring Boot application with Spring Security on AWS Elastic Beanstalk not seeing cookies

I am just starting with AWS and have successfully deployed a Spring Boot application (version v1.3.0.M2) to Elastic Beanstalk by following Deploying Spring Boot Applications. The application also uses Spring Security and was created from the following tutorial AngularJS and Spring Security using the source code as a starting point.

When I run the application locally as a Spring Boot JAR file and point my browser to the login page, I see a JSESSIONID request cookie and a XSRF-TOKEN cookie request cookie.

When I deploy the application to AWS as a WAR file and point my browser to the login page, I don't see either the JSESSIONID cookie or the XSRF-TOKEN cookie. I only see a __utma cookie and a __utmz cookie

I have attached a load balancer to my instance with the following port configuration

80 (HTTP) forwarding to 80 (HTTP) Stickiness: AppCookieStickinessPolicy, cookieName='JSESSIONID'




Aucun commentaire:

Enregistrer un commentaire