cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
376
Views
0
Helpful
2
Replies

WxCC Desktop iFrame JS Copy to Clipboard Failing

Faisal Zaidi
Beginner
Beginner

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?

 

1 Accepted Solution

Accepted Solutions

Santosh Patil
Cisco Employee
Cisco Employee

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.

 

View solution in original post

2 Replies 2

Santosh Patil
Cisco Employee
Cisco Employee

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.

 

Thanks Santosh - doing that now..

 

Getting Started

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:

Recognize Your Peers