接上一篇,emmmm,还是自己太菜了,上一篇是想解决https访问http接口的问题,问题是解决了,结果又出来这个,问了下大佬,是ajax跨域请求的问题,查了下有解决方案,但是对于现在的我还是太复杂了,唉,老老实实在controller转一次吧。
Access to XMLHttpRequest at ‘http://192.168.150.193:8082/api/AMHS/testEqpStatus‘ from origin ‘http://localhost:54427‘ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is present on the requested resource.