错误代码提示如下:
[Web浏览器] "XMLHttpRequest cannot load http://120.55.144.237:8080/api/manager-order/search. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access." /haifu/main.html (0)
[Web浏览器] "Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://120.55.144.237:8080/api/manager-order/search'." /haifu/js/mui.min.js (7)
[Web浏览器] "XMLHttpRequest cannot load http://120.55.144.237:8080/api/manager-order/search. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access." /haifu/main.html (0)
[Web浏览器] "Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://120.55.144.237:8080/api/manager-order/search'." /haifu/js/mui.min.js (7)
西伯利亚牧马人
- 发布:2016-05-31 20:49
- 更新:2016-06-01 12:30
- 阅读:4856
西伯利亚牧马人 (作者)
我访问的地址和端口号都是一样的,在后台测试修改 public Response orderSearch(HttpSession httpSession,@RequestBody MerchantPayOrderCommonVO vo) {
修改为public Response orderSearch(HttpSession httpSession, MerchantPayOrderCommonVO vo) {
即可访问成功,但是接口不允许去掉这个东西 ,其他地方要用。仍然没有解决掉
2016-06-02 14:28