Ubicación de la ventana Host vs Origin
console.log(window.location.host); // localhost:3000
console.log(window.location.hostname); // localhost
console.log(window.location.origin); // http://localhost:3000
Anxious Alligator