Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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,
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.
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.
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,
Hi @grippy : what happens if you add the
allow="clipboard-read; clipboard-write"
to the VisualForce iframe as well?
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.