Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
grippy
Contributor
Contributor

Salesforce iframe integration & copy-to-clipboard not working

Hello,

We have a QlikSense app embeded inside Salesforce through an iframe. 

It works fine except when you try to "Copy Value" from it.

It raises a "The Clipboard API has been blocked because of a permissions policy applied to the current document." 

Does we missed a Qlik configuration on the iframe? 

Thanks a lot,

Labels (1)
1 Solution

Accepted Solutions
Daniele_Purrone
Support
Support

Hi @grippy ,

this is a known issue (QB-22750). We are considering temporarily reverting some changes that we recently made, basically moving from a deprecated function to a currently developed one, but in the long term, we will implement the change again.
What you will need to is to add a frame parameter to your iframe, see https://stackoverflow.com/questions/61401384/can-text-within-an-iframe-be-copied-to-clipboard

Basically adding someting like: <iframe src="index.html" allow="clipboard-read; clipboard-write"></iframe>
will make it work again.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
Daniele_Purrone
Support
Support

Hi @grippy ,

this is a known issue (QB-22750). We are considering temporarily reverting some changes that we recently made, basically moving from a deprecated function to a currently developed one, but in the long term, we will implement the change again.
What you will need to is to add a frame parameter to your iframe, see https://stackoverflow.com/questions/61401384/can-text-within-an-iframe-be-copied-to-clipboard

Basically adding someting like: <iframe src="index.html" allow="clipboard-read; clipboard-write"></iframe>
will make it work again.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
grippy
Contributor
Contributor
Author

Hello Daniele_Purrone,

Thanks for your quick response but the issue remains the same despire adding the allow attribute with clipboard-read and clipboard-write permission.

Do you have any link to the issue QB-22750?

We do have multiple iframe on this page, one is constructed by Salesforce through a Visualforce page that includes the qlik's iframe. Could this be the issue ? 

See below : 

<!-- start of salesforce iframe -->
<iframe lwc-3q5onqa2l97="" height="100%" width="100%" scrolling="yes" allowtransparency="true" name="vfFrameId_1698076073169" title="accessibility title" allowfullscreen="true" lang="en-US" allow="geolocation *; microphone *; camera *; display-capture *" tabindex="0">
[...]

<!-- start of QLIK iframe --> 
<iframe id="qlikFrame" frameborder="0" height="100%" width="100%" allow="clipboard-read; clipboard-write" src="APP_URL"></iframe>
<!-- end of QLIK iframe -->

</iframe>
<!-- end of salesforce iframe -->

 Thanks,

Daniele_Purrone
Support
Support

Hi @grippy : what happens if you add the 

allow="clipboard-read; clipboard-write"

to the VisualForce iframe as well?

 

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
grippy
Contributor
Contributor
Author

Hello @Daniele_Purrone,

We don't have much control to the default VisualForce iframe, so unfortunately we cannot add any allow permission for the moment. 

Nevertheless, it seems you rolled back some changes you made recently as the copy/paste feature is working again inside an iframe.