Forum Discussion
Power BI Embedded Paste is disabled
Hello
We have an application that uses the JavaScript SDK to embed reports in a scenario where the app owns the data. We have reports that have slices where users can use the paste option from the visual context menu to paste multiple values.
The paste option is not available when embedding the report. "Paste is disabled because clipboard access is blocked. Enable clipboard access to use this feature."
It works when I embed directly, into an iframe with allow="clipboard-read; clipboard-write". However, when I embed using the JavaScript SDK, I have no way to set the attribute.
Is there a way to allow clipboard read and clipboard write when using the JavaScript SDK to embed a report?
Hii Olle
The allow="clipboard-read; clipboard-write" attribute is only supported when you embed manually with a raw <iframe>.
When using the SDK, the iframe is created internally and cannot expose clipboard permissions for security reasons.So at the moment, clipboard paste is not supported in JavaScript SDK embeds, and there is no API to enable it. The only workaround is to embed with your own iframe tag (not the SDK) if clipboard functionality is required.
1 Reply
- rohit1991
Super User
Hii Olle
The allow="clipboard-read; clipboard-write" attribute is only supported when you embed manually with a raw <iframe>.
When using the SDK, the iframe is created internally and cannot expose clipboard permissions for security reasons.So at the moment, clipboard paste is not supported in JavaScript SDK embeds, and there is no API to enable it. The only workaround is to embed with your own iframe tag (not the SDK) if clipboard functionality is required.