blocks icon indicating copy to clipboard operation
blocks copied to clipboard

consider supporting Clipboard API

Open jaked opened this issue 2 years ago • 1 comments

feedback from @HiDeoo:

I tried adding a copy to the clipboard button but due to the iframe setup, it looks like it's not possible to use the Clipboard API as we get a DOMException: The Clipboard API has been blocked because of a permissions policy applied to the current document.. The iframe allow attribute is currently set to camera;microphone;xr-spatial-tracking. Is there any plan / thoughts regarding adding at least clipboard-write (clipboard-read may be too much) to the list of allowed permissions? (ref: https://web.dev/async-clipboard/#permissions-policy-integration - cross-origin syntax: https://stackoverflow.com/a/69741484/1945960)

jaked avatar Mar 02 '23 16:03 jaked

Started copying what @HiDeoo is doing but for package managers.

Sadly you need the clipboard-write on the iframe, are security considerations the blocker here atm?

image

Hacksore avatar Mar 23 '23 22:03 Hacksore