Thanks Mungo Dewar! Actually, even though there’s a CORS error, the hits are still being recorded, thankfully. However, if I were to try to send a payload with the POST request, that would be removed and the count would fail. Since this is not a fully custom deployment (using Surge since it’s a relatively simple static site), I don’t have full control over the server and can’t fix the CORS issue. Nice catch though! I didn’t think too many people would pick up on the hit counter. 14744 now! (which is way more than I thought this would get. I’m kind of stunned honestly.)
Thanks for reading and for visiting!