2
我已经在spring mvc应用程序中实现了spring安全性,并且它对我来说工作正常但我尝试使用Nginx服务器配置访问此应用程序Spring Security停止工作我发现春季安全无法使用Nginx服务器创建JSESSIONID cookie。Spring Security无法使用Nginx服务器创建JSESSION id
任何人都可以帮助我请。
我已经在spring mvc应用程序中实现了spring安全性,并且它对我来说工作正常但我尝试使用Nginx服务器配置访问此应用程序Spring Security停止工作我发现春季安全无法使用Nginx服务器创建JSESSIONID cookie。Spring Security无法使用Nginx服务器创建JSESSION id
任何人都可以帮助我请。
嗨我已经有办法如何处理Ngnix服务器中的Cookie。
location/{
proxy_pass http://localhost:8080/Url/;
proxy_pass_header Set-Cookie;
proxy_pass_header X-Forwarded-For;
proxy_set_header X-Real-IP $remote_addr;
proxy_cookie_domain localhost test.com;
proxy_cookie_path /Url/ /;
}