<!DOCTYPE html> <html> <body> <textarea id="minecraft_log" style="width:100%;" rows="40"> </textarea> </body> </html> <script> fetch("http://localhost:8080/minecraft-log") .then(res => res.json()) .then((out) => { document.getElementById('minecraft_log').value = out.log; }) .catch(err => { throw err }); </script>