Forum Discussion

OliKIspan's avatar
OliKIspan
Copper Contributor
Apr 01, 2022
Solved

Unable to use Clipboard API in custom Teams App

Hi,

 

Im trying to develop a teams app, and an integral part of the app is to be able to copy a string to the clipboad of the user.

 

The app works fine when viewed in the browser (not as an embedded page within the teams enviroment), but while using it in teams the following error appears: 

Microsoft.JSInterop.JSException: The Clipboard API has been blocked because of a permissions policy applied to the current document. 
See https://permanently-removed.invalid for more details.

So is there any way to update the clipboard permission policy within our organization?

I really can't seem to find any documentation regarding the Clipboard policy for teams / 365.

 

Context:

The app is built with Blazor and TeamsFx sdk.

  • OliKIspan's avatar
    OliKIspan
    May 09, 2022

    Hi, ChetanSharma-msft

     

    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.

     

5 Replies

Resources