Custom CCP Iframe frame-ancestors issue

0

I have used a Custom CCP using one from Github and when i launch the softphone i get the page display and then pop up for a login, then i log in but it takes me to the amazon connect console in the pop and the main page has a sad face displayed. When i look at Chrome logs i see there is an issue with frame-ancestors.Enter image description here

Has anyone come across this i have added the domain in the amazon connect aws console under origins. Any pointers would be welcome

1 Answer
0

Hello,

Thank you for reaching out to us. I understand that you are not able to load custom CCP iframe due to frame-ancestors issue. This issue is basically from the browser side. Could you please try below options

  1. By enabling 3rd party cookies for the page in the browser and correcting the domain, making sure the instance Access Url domain and the CCP iframe domain match

  2. CSP the Same Origin iframe [1]

Now suppose you want to allow a page to be framed, for example within an iframe, but only from the same site (same origin). In this case you can use : frame-ancestors 'self' And this would allow your iframe code:

<iframe src="/same/site/url.html"> Using frame-ancestors 'self' is similar to using X-Frame-Options: sameorigin Specifying a URI Now suppose we want to allow https://a.example.com and https://b.example.com to frame our page, we can specify it with frame-ancestors like this: frame-ancestors https://a.example.com https://b.example.com
  1. Download Ignore X-Frame headers extension for Chrome [2]

Hope this helps.

References:

[1] https://content-security-policy.com/frame-ancestors/ [2] https://stackoverflow.com/questions/68356006/amazon-connect-ccp-iframe-is-being-denied-even-after-whitelisting-the-domain-nam

SUPPORT ENGINEER
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions