HTTPS login with Spring Security redirects to HTTP

后端 未结 9 1950
梦如初夏
梦如初夏 2021-01-31 02:12

I have a Spring web app, secured with Spring Security, running on EC2. In front of the EC2 instance is an Elastic Load Balancer with an SSL cert (https terminates at the load ba

9条回答
  •  一生所求
    2021-01-31 02:55

    use below lines of code in web.xml

    
      
        Login and Restricted Space URLs
        /j_security_check
        /loginpage.rose
      
      
        CONFIDENTIAL
      
    
    

    it makes forced to use HTTPS.

提交回复
热议问题