前端又有跨域问题
后端添加代码
@CrossOrigin(allowCredentials="true",allowedHeaders="*")
前端页添加代码
xhrFields:{withCredentials:true},
添加后本来已经解决的跨域问题又出现了:
getotp.html:1 Failed to load http://localhost:8090/user/getotp: The 'Access-Control-Allow-Origin' header has a value 'null' that is not equal to the supplied origin. Origin 'null' is therefore not allowed access.
有人遇到相同问题吗?