Skip to content

SPFx app not working as expected in Teams client.  #9335

Open
@Namita2015-lab

Description

@Namita2015-lab

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.

Metadata

Metadata

Assignees

Labels

area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-msteamsCategory: SharePoint Framework & Microsoft Teams supporttype:questionQuestion... if answered, will be tagged as such.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions