I want to send a variable/value that I have in client side javascript. The reason I am doing this is because my req.body.domain is coming back undefined, I am trying to send this to a nodejs route.
client side Java script
function digIt() {
    var xhr = new XMLHttpRequest();
    var domain = document.getElementById(digToolInput).value
    xhr.open('GET', "/tools", true);
    xhr.send(domain);
};
 
     
    