跨域的参数跟以前不一样了,哪一个正确?谢谢!
前几节课的代码是
@CrossOrigin(allowCredentials = "true",allowedHeaders = "*")
这次课我发现代码被悄悄地改了。。
@CrossOrigin(origins = {"*"}, allowCredentials = "true")
有啥区别?哪个正确?谢谢!
前几节课的代码是
@CrossOrigin(allowCredentials = "true",allowedHeaders = "*")
这次课我发现代码被悄悄地改了。。
@CrossOrigin(origins = {"*"}, allowCredentials = "true")
有啥区别?哪个正确?谢谢!
2019-05-15
举报