Json results issue CORS

Hello all!

Having a trouble related to the jsonResult responde via AJAX.
I get the metrics with some script to get faster the data but today when I run my JS code to get the data I get a CORS error. Url example https://webpagetest.org/jsonResult.php?test=210507_AiDcKR_d9097e32c425932e7286c91869a3dcc8

Code use.
function reqListener () {
console.log(this.responseText);
}
var oReq = new XMLHttpRequest();
oReq.addEventListener(“load”, reqListener);
oReq.open(“GET”, “https://webpagetest.org/jsonResult.php?test=210507_AiDcKR_d9097e32c425932e7286c91869a3dcc8”);
oReq.send();

Could you help me with this issue?
Thanks

1 Like

Should be fixed now.

1 Like

Thanks! It works now

1 Like