I have this problem, when the user is validated I ask the server for the following page but it does not show it. I do not have experience. Thank you.
let base_url = window.location.origin;
function Login() {
let url = base_url + "/login";
let username = document.getElementById("username").value;
let password = document.getElementById("password").value;
let xhr = new XMLHttpRequest();
xhr.open("GET", url + "?username="+ username + "&password=" + password, false);
xhr.send();
if (xhr.status == 200) {
xhr.open("GET", base_url + "/getacdreport", false);
xhr.send();
//console.log(xhr.responseText);
} else {
alert(xhr.responseText);
}
}