axios.defaults.withCredentials = true 前端跨域传递Cookie设置
后端设置了跨域请求之后,前端也要做相应设置
@CrossOrigin(origins = "*",allowedHeaders = "*",methods = {},allowCredentials = "true")
参考地址:https://blog.csdn.net/xiaoyuer_2020/article/details/109000664
后端设置了跨域请求之后,前端也要做相应设置
@CrossOrigin(origins = "*",allowedHeaders = "*",methods = {},allowCredentials = "true")
参考地址:https://blog.csdn.net/xiaoyuer_2020/article/details/109000664