//Using the javascript Fetch API //References: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch fetch('http://localhost:8080/test') .then((response) => response.json()) .then((data) => console.log(data));