Hi team! Super excited to be part of this challenge. Could someone englighten me? My visitor count should work (also fixed the CORS issue) and there is no error message. The only issue is that it keeps showing the following when I go on my url: "Visitor count: undefined"
My code is the following:
'''
<body>
<h1>This is my test page</h1>
<p>Visitor count: <span id="visitor_counter"></span></p>
<script>
fetch('API_GATEWAY_URL')
.then(response => response.json())
.then((data) => {
document.getElementById('visitor_counter').innerText = data.Count
})
</script>
</body>
'''
Has anyone experienced the same? I have been stuck for a long time on this bug now. Thanks a lot for your help!