Navigator.clipboard is missing in anvil-app-server

I tried to use the method posted in copy-to-clipboard-button to copy items by anvil.js.window.navigator.clipboard.

But I found that it only works when using online server. The interface disappeared after I used git to pull the repository to local and run it with docker image you provided on docker hub.

The same case happened to ‘Clipboarditem’ as well.

I can’t figure out why it has such difference, and I really need to implement app locally becasue of the Internet latency.

I would really appreciate it if you could provide a solution.