I have a https Web Page. I call another http webpage by JavaScript inside.
The alert shows Access Denied
.
Here is my code.
var url = "http://127.0.0.1:2737/video";
try {
if (document.all) {
var xdr = new XDomainRequest();
xdr.open('GET', url)
xdr.send();
}
else {
var req = new XMLHttpRequest();
req.open('GET', url, true);
req.send(null);
}
}
catch (e) {
alert(e);
}
Please help me!