Hi i have created an html page with this javascript function
function getData() {
if(window.XMLHttpRequest) {
req = new XMLHttpRequest();
req.onreadystatechange=sendData;
req.open("GET", "http://service-page/axis2Example-1.0.0-SNAPSHOT/services/SystemService/viewUsers?positionX=10&positionY=30&round=10", true);
req.send();
}
}
function sendData() {
if(req.readyState==4 & req.status==200) {
}
}
This function is used to call a web service. The problem is that my browser answer with this message:
XMLHttpRequest cannot load ........ autoCreate=false&log=true. Origin ...... is not allowed by Access-Control-Allow-Origin.
Does anyone knows a solution?