navigator.clipboard.writeText() not working in SPFx app published to Teams. #4470
Unanswered
Namita2015-lab
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 -
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.
Beta Was this translation helpful? Give feedback.
All reactions