在控制类加入注释@CrossOrigin(allowCredentials = "true",allowedHeaders = "*",origins = {"*"})
在html加入xhrFields: {withCredentials: true}
SpringBoot中的ajax跨域问题
猜你喜欢
转载自www.cnblogs.com/otonashi/p/10593048.html
今日推荐
周排行