Allow clipboard-read on iframe for twitch extension
I want my Twitch Extension to be able to copy text to clipboard. It seems as though that the iframe allowed permissions are limiting this. Therefore I request for Twitch staff to add clipboard-read;
and maybe clipboard-write;
-
HeideltrautEUW commented
Barry recommended https://obsproject.com/tools/browser-drag-and-drop for my use-case which absolutely fine and allows resolution data to be part of the URL to automatically apply them to the OBS scene / browsersource (including layer name)
-
HeideltrautEUW commented
Yes, unfortunately the "execCommand()" is now deprecated and the clipboard API is recommended but not allowed
https://dev.twitch.tv/docs/extensions/#restrictions-on-browser-apis
E.g. it would be benefical for panel extensions to allow "clipboard-write" to allow users to copy something on a button click.
Current error log:
"[Violation] Permissions policy violation: The Clipboard API has been blocked because of a permissions policy applied to the current document. See <URL> for more details."