Spring-boot redirects differently when hitting localhost vs host ip
I have a Java 8 Spring Boot (1.5.13) web server, behind an AWS Application Load Balancer. The ALB performs TLS termination. The web server redirects users for various reasons (for eg. to a login page). As described in docs, I've…