04-27-2023 02:47 AM
We have a web application which contains a button to invoke a JavaScript function which copies text from a textbox to the users clipboard. This functions works perfectly when the application is browsed directly.
However, when we embed the application as an iFrame in the WxCC Agent Desktop, the copy to clipboard doesnt work and we get the following error in the browser console logs for Chrome and Edge (Firefox still works fine):
"Uncaught (in promise) DOMException: The Clipboard API has been blocked because of a permissions policy applied to the current document."
We have tried to set both of these custom header values in our iFrame application as well as directly in IIS on the hosting WebServer but neither has worked:
<add name="Content-Security-Policy" value="frame-ancestors 'self' https://*.cisco.com;" />
<add name="Permissions-Policy" value="geolocation=(self 'https://desktop.wxcc-eu1.cisco.com')" />
Any ideas please?
Solved! Go to Solution.
04-27-2023 11:09 PM
Hi Faisal, Could you please raise this query as a ZENDESK ticket as that will be our new process to handle the Wxcc API request queries?
You could write a mail to this wxccdevsupport@webex.com and it will create a ticket on us. Thank you.
04-27-2023 11:09 PM
Hi Faisal, Could you please raise this query as a ZENDESK ticket as that will be our new process to handle the Wxcc API request queries?
You could write a mail to this wxccdevsupport@webex.com and it will create a ticket on us. Thank you.
04-28-2023 02:34 AM
Thanks Santosh - doing that now..
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: