Open
Description
After publishing the SPFx app to Teams with the reaact js code to copy clipboard - navigator.clipboard.writeText(), getting error in the console section of DevTools -
image
The Clipboard API is blocked because of a permission policy applied to the current document. See Deprecating Permissions in Cross-Origin Iframes - The Chromium Projects (google.com)
The document however, does not help with resolving the error. Issue seen only when copying within Teams application for the SPFx app, otherwise working on SharePoint.