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-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,
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