var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
alert(this.status) // this alert showing 0
if (this.readyState == 4 && this.status == 200) {
console.log("data==", this.responseText)
//document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("POST", "url", true);
xhttp.setRequestHeader('Content-type', 'application/json');
xhttp.send(JSON.stringify({"name":"myname" }));
above is my code which is working fine in desktop opera and all other browsers but in opera mini it is not working, status is 0, can someone help me out please.