Spring Boot+AngularJS中因为跨域导致Session丢失
解决方案:angularjs中添加.config(function($httpProvider) {$httpProvider.defaults.withCredentials = true;})如果该属性被设置为true,那么XHR请求对象中会设置withCredentials标记。默认情况下, CORS请求不会发送 cookie,而 withCredentials标记会在请求中加入Access...
转载
2018-04-09 23:24:20 ·
348 阅读 ·
0 评论