My Javascript code does this:
navigator.clipboard.writeText(myVariable)
And it works great in my local environment but when I move it to an ASP.NET environment, the click event fires but the line above does not run, nothing is copied to clipboard. I thought it could be an environmental config issue but I'm kinda shooting in the dark.