We have introduced html macros to confluence (cloud version). I inserted the html macro into the page and wrote the following script statement there. This gets the value from the <meta name="ajs-remote-user-key" content="xxxxxxx"> statement, but it doesn't work. Note that this <meta name="ajs-remote-user-key" content="xxxxxxx"> is not written in the html macro. What could be the cause?
<script>
const key = document.getElementsByName('ajs-remote-user-key')[0].content;
alert(key);
</script>