You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我java后台是在本地跑的,返回一个json。localhost:8080
我把react-antd-admin设置为localhost:9090,想访问localhost:8080/bpm/pi时。
1,我在webpack.config.js中加入proxy怎么代理不过去?还是显示在localhost:9090/bpm/pi;
2,为什么我在config.js的api中修改host,能跨域到localhost:8080,但是返回:
XMLHttpRequest cannot load http://localhost:8080/bpm/pi. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9090' is therefore not allowed access.
这个项目上线的话是不需要跨域的,所以不能修改java代码。我改怎么改?
The text was updated successfully, but these errors were encountered:
我java后台是在本地跑的,返回一个json。localhost:8080
我把react-antd-admin设置为localhost:9090,想访问localhost:8080/bpm/pi时。
1,我在webpack.config.js中加入proxy怎么代理不过去?还是显示在localhost:9090/bpm/pi;
2,为什么我在config.js的api中修改host,能跨域到localhost:8080,但是返回:
XMLHttpRequest cannot load http://localhost:8080/bpm/pi. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9090' is therefore not allowed access.
这个项目上线的话是不需要跨域的,所以不能修改java代码。我改怎么改?
The text was updated successfully, but these errors were encountered: