-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前后端分离部署时,登录功能失效 #15
Comments
表示部署在同一台都失效了,但是在本机启动时可以。 |
有结果了吗 |
有没有可能是与谷歌浏览器不兼容,换个浏览器试试 |
如果部署后没办法登录的原因是因为nginx导致的两次cookie不同。 |
使用此方法解决部署时不能登录的问题 |
还是不行 |
如果是使用了nginx的话可以参考一下上面nginx的配置,我这边使用了之后可以解决了 |
我用这个方法也不行。不知道怎样设置,我看请求标头上并没有cookie,但是通过IDEA运行是有的 |
那是因为你前端调后端接口的URI前缀不一样导致的,需要在后端的配置文件里加上你nginx配置的后端接口前缀:
|
当前端和后端分离部署,即部署在两台机器上时,登录之后任然会显示未登录,可能是session作用域的问题
The text was updated successfully, but these errors were encountered: