Copy to Clipboard Error

Has anyone else used application.setClipboardContent() in TiNG and/or Servoy 2025.6? This works in the developer but not when deployed to Tomcat.

function copyEmail(event) {
   if (email) {
      application.setClipboardContent(email);
      scopes.jtsutil.showToaster('info','Email Address copied to clipboard','',false);
   } else {
      scopes.jtsutil.showToaster('warning','Email Address empty, nothing copied to clipboard','',false);
   }
}

Browser console:

Servoy log:

are you when in deployed mode access this over https?

because if you don’t use https its very likely the browser doesn’t allow you to control or write anything to the clipboard, the code just does this:

window.navigator.clipboard.writeText(content);

But there are various scenarios (all security related) that the browser doesn’t allow this.

We did not have https configured on our test system so I set that up today and it now works. Thanks!