I have a stateful Spring Boot application with Thymeleaf frontend, running in an App Service (using Azure Docker Registry).
When I deploy the app, some issues happen:
- during redirection, the redirectAttributes#addFlashAttribute is not working; Thymeleaf doesn't receive the flash attribute object
- logging in to the app without remember me doesn't work, can only login with remember me cookie
These issues started to happen recently, and only when running the app in Azure. When I run it in local Docker or IntelliJ regardless the env (prod/dev), it works perfectly. I don't have either multiple instances or load balancer (it's a small production plan - S1 tier).
Besides this, I have already set the ARR affinity 'On' under the Configuration > General settings, but still no luck.
Versions:
- Spring Boot: spring-boot-starter-parent -> 2.3.5.RELEASE
- Docker: openjdk:14-jdk-alpine