$.ajax({
url: "http://10.13.22.150/req_path",
success: function(result){
console.log(result);
}
});
I'd like to send Cross-Domain XMLHttpRequest to ip addresses in the private network.
However, the following error is shown in developer tools console:
SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd.
According to Wireshark, the packet is not sent from client side. I guess the request is blocked by Microsoft Edge
Furthermore, I found that the requests are only blocked if the url of XMLHttpRequest and Edge client are in the same CIDR of private network.
Client IP Request URL Result
192.168.x.x send to 192.168.x.x ->>>>> X
10.13.x.x send to 10.13.x.x ->>>>> X
10.13.x.x send to 192.168.x.x ->>>>> O
Other browsers like IE11 / Chrome / Firefox work just fine. This circumstance is only shown in Microsoft Edge.
Is there any workaround or solution about this issue?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…