01-07-2025 06:06 AM
Hello Webex Community,
I'm currently integrating a web application into Webex via a screen pop within the desktop interface, which functions as an iframe. My web app allows agents to copy a generated text in order to paste it as an answer for email. I've encountered an issue where the "copy" functionality within this screen pop is blocked, resulting in the following error:
NotAllowedError: Failed to execute 'writeText' on 'Clipboard': The Clipboard API has been blocked because of a permissions policy applied to the current document.
I also came across this post (https://community.cisco.com/t5/webex-for-developers/wxcc-desktop-iframe-js-copy-to-clipboard-failing/td-p/4822839) and tried implementing the same parameters in the screen pop part of the desktop layout without sucess. Is there any way to fix this ?
01-16-2025 04:32 AM
Hello @steinbrunnerj / @gabriel-gossa , thanks for bringing this to our attention.
Today, the allowedParams for Screen Pop are hard-coded, so even using desktop layout wouldn't include the 'clipboard-write; clipboard-read;' needed to achieve what you mention.
We are actively working on a fix for this to be able to include these parameters, will keep you posted on this thread when it will be possible to overcome this issue.
01-10-2025 01:50 PM
The clipboard issue in your Webex desktop integration occurs because the Clipboard API is blocked due to a permissions policy applied within the iframe. This is a common restriction in modern browsers to prevent unauthorized clipboard access. To resolve this, you need to ensure that your web application explicitly declares permissions for clipboard access and that these permissions are supported in the Webex environment.
First, confirm that the allow="clipboard-write" attribute is included in the iframe's configuration within the Webex desktop layout. This attribute explicitly grants the iframe permission to write to the clipboard. Additionally, ensure that your web app runs over HTTPS, as clipboard access is restricted to secure origins.
If the issue persists, verify with Webex support or documentation whether specific security policies are enforced within the Webex desktop client that override iframe permissions. You may also explore alternatives like using Webex APIs to directly handle data transfer between the app and the desktop interface, bypassing clipboard dependency. If none of these solutions resolve the issue, consult Cisco TAC for further guidance on compatibility and permissions adjustments.
01-07-2025 10:53 PM
Hi @gabriel-gossa,
Have you checked this sample here - https://github.com/CiscoDevNet/webex-contact-center-widget-starter/blob/master/Iframe_Widget_Allowedparams.json where you can find SCREEN POP option as well.
If this doesn't help either, kindly raise a support case to us by sending the details to wxccdevsupport@webex.com and we can check it further.
Regards!
Sandip
01-08-2025 01:37 AM
Hi @sandiban ,
Thank you for the reference! I’ve reviewed the sample you shared from the GitHub repository, but I might still be missing something.
To clarify, I’m working on configuring the screen pop for my dynamic web app. Here’s what I’ve done so far:
Here’s a snippet of my desktop layout for context :
{
"comp": "slot",
"attributes": {
"name": "SCREEN_POP_TAB",
"allowedParams": "clipboard-read; clipboard-write self https://dialonce.inspear.org/"
}
},
"visibility": "SCREEN_POP"
},
{
"comp": "md-tab-panel",
"attributes": {
"slot": "panel",
"class": "widget-pane"
},
"children": [
{
"comp": "slot",
"attributes": {
"name": "SCREEN_POP",
"allowedParams": "clipboard-read; clipboard-write self https://dialonce.inspear.org/"
}
}
],
"visibility": "SCREEN_POP"
},
{
"comp": "md-tab",
"textContent": "Iframe Widget",
"attributes": {
"slot": "tab"
}
},
{
"comp": "md-tab-panel",
"attributes": {
"slot": "panel"
},
"children": [
{
"comp": "agentx-wc-iframe",
"attributes": {
"src": "https://dialonce.inspear.org/index.php?id=f69e267ebfd863228d40c03887284882110767feffb6c381cf34a5aa6aa5e54a",
"allowedParams": "clipboard-read; clipboard-write self https://dialonce.inspear.org/"
},
"wrapper": {
"title": "Iframe",
"maximizeAreaName": "app-maximize-area"
}
}
]
}
The screen pop doesn’t function as expected, and I suspect there might be a missing configuration I overlooked. Before raising a support case, I want to confirm whether I’ve correctly implemented the configuration.
Could you provide any additional insights on this setup?
Thanks again for your assistance!
Regards,
01-10-2025 01:22 PM
Hi @gabriel-gossa,
I found your post today and I am facing exactly the same issue.
Have you found a way to activate the copy function in the screen pop section in the meantime?
Thanks,
Regards
Jörg
01-13-2025 01:29 AM
Hi @steinbrunnerj, I am still stuck with this issue and trying to know if the problem comes from my configuration or webexCC itself. I'm still waiting for more information in order to raise a ticket if the issue does not come from my side.
Regards,
Gabriel
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide