vue axios springBoot 跨域session丢失

前端:
  在引入axios的地方配置
  axios.defaults.withCredentials=true
后端:

  后端跨域配置不能设置为:“*”,要改成下图所示的配置

  

即可解决该问题。

猜你喜欢

转载自www.cnblogs.com/luyuefeng/p/8919621.html