I am trying to get the result of some XMLHttpRequest of Jenkins server
var oReq = new XMLHttpRequest();
var res = oReq.open("get", "http://" + IP + ":8080/job/Job1/lastBuild/api/json?depth=1", true);
oReq.send();
I am not getting the input to var res
however, why is that?
EDIT
I tried one of the answers that were commented here and I am getting
No 'Access-Control-Allow-Origin' header is present on the requested resource.
What does it means?
Thanks