跨域异常
本地测试,在登录界面登录时,报了跨域异常,这个是要在哪里改什么配置吗?Access to XMLHttpRequest at 'http://192.168.1.6:9999/login.html' (redirected from 'http://192.168.1.6:3000/jshERP-boot/user/logout?_t=1622981388') from origin 'http://192.168.1.6:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
xhr.js?b50d:160 GET http://192.168.1.6:9999/login.html net::ERR_FAILED 需要运行前端服务的,9999是后端的端口
页:
[1]