Forum Discussion
Unable to use Clipboard API in custom Teams App
- May 09, 2022
This does unfortunately not work, I'm pretty sure the problem is that teams doesn't allow the Clipboard API within the embedded page container.
And i think there currently is no way to get that permission.
OliKIspan - Could you please refer below doc and check if it helps: Clipboard API - Web APIs | MDN (mozilla.org)
- OliKIspanMay 09, 2022Copper Contributor
This does unfortunately not work, I'm pretty sure the problem is that teams doesn't allow the Clipboard API within the embedded page container.
And i think there currently is no way to get that permission.
- Prasad_Das-MSFTMay 11, 2022Microsoft
OliKIspan -
Technically, this would be supported by the browser Permissions Policy, by adding an option to theallow
attribute of the embeddediframe
.
https://web.dev/async-clipboard/#permissions-policy-integration
Please also refer similar thread: Clipboard API has been blocked because of a Feature Policy applied to the current document. iframe on Chrome · Issue #1767 · instructure/canvas-lms (github.com)