Express-session Secure Cookies not working

后端 未结 7 698
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 00:16

When not using secure cookie true setting, my app user login works fine. When I enable secure cookies, the login appears to go through fine, but it seems the cookie is not s

7条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 01:12

    
     ServerName xx.com
        ProxyPreserveHost On
    
    
            ProxyPreserveHost On
            ProxyPass http://localhost:8080/
            ProxyPassReverse http://localhost:8080/
            RequestHeader set X-Forwarded-Port "443"
            RequestHeader set X-Forwarded-Proto "https"
    
    
    
    

提交回复
热议问题