I can write to clipboard using
navigator.clipboard.writeText. But I can’t read from the clipboard using
navigator.clipboard.readText(). It gives
Clipboard API has been blocked because of a permissions policy applied to the current document. See https://goo.gl/EuHzyv for more details error. Is there any option I can add to manifest.yml file? Is this intended behavior?
Hi, Forge only supports writing to the clipboard. The iframe permissions are the same for all apps, it’s not something you can add in the manifest.
I’m curious, what’s your use case for reading from the clipboard?
We have developed a CLI app that runs in the browser. You can do things like this:
$project get-all --json > clipboard so we wanted to have
$issue create < clipboard. It is not a blocker for us, user can paste to the terminal directly but it isn’t pleasant in the command history.