- Newest
- Most votes
- Most comments
I don't know if you still encounter this issue, but I had to deal with the same problem and this comes up first when you google for an solution, so I will add my solution for others to find:
Despite using the official sample code from the connect-streams repo and adding the url to the approved origins I wasn't able to get my CCP running. Tried it on multiple browsers, s3, localhost, etc. Nothing did work. Then I noticed that the problem is that most modern browser block the CCP for whatever reason. In Firefox you have to turn off the "Enhanced Tracking Protection" (little shield icon next to the url). Then everything works fine. There are probably similiar features in other browsers.
answered 2 years ago
I had the similar issue with at v2.19.2 and resolved the problem on Chrome.
Steps
Please try the followings:
- Go to chrome://settings/content/all?searchSubpage=aws. Delete all cookies and settings.
- Go to chrome://settings/content/all. Search the websites you are embedding CCP, like
example.com. Delete all cookies and settings of it. - Go to chrome://settings/content/storageAccess. Make sure "Sites can ask to use information they've saved about you" is checked and no not-allowed site is on the blocked list, especially
awsapps.comandconnect.aws - Go to
https://your-instance-name.my.connect.aws/ccp-v2/and login to CCP. Allow any permissions asked. - Go to your website that embeds CCP(Amazon Connect Streams). Allow any permissions asked.
Do not forget to add your origin to the allowed list of your Connect instance.
Localhost does not work
As of October 2025, the origin http://localhost does not work either because the HTTPS protocol is required or it is now on the permanent blacklist in the Streams ecosystem.
The http://localhost app throws the X-Frame-Options: sameorigin error even if it is an allowed origin.
You can run the localhost as an Agent Workspace 3rd party application/service but not as a Streams app.
Resources
(Actually, the source the AI agent shared was helpful.)
answered a year ago
The issue you're experiencing with the Connect CCP window being blocked is likely due to Content Security Policy (CSP) restrictions. To resolve this, you need to properly configure the X-Frame-Options header and ensure that your domain is added to the approved origins list in your Amazon Connect instance.
Here are some steps to address the problem:
- Update your Express.js application to set the appropriate X-Frame-Options header. Instead of using a dynamic value, set it to a safe, static value. For example:
res.setHeader("X-Frame-Options", "SAMEORIGIN");
This will allow your page to be framed by pages from the same origin.
- Ensure that you've correctly added your domain (localhost:3000 in this case) to the Approved origin list in your Amazon Connect instance. To do this:
- Log in to the AWS Management Console
- Navigate to the Amazon Connect console
- Select your instance
- Go to "Application integration"
- Choose "Add origin"
- Enter "http://localhost:3000" (assuming you're using http for local development)
- In your initCCP function, make sure you're using the correct URL format. Update the ccpUrl to use '/ccp-v2' instead of '/connect/ccp-v2':
ccpUrl: "https://<your-instance-name>.my.connect.aws/ccp-v2"
-
If you're using SAML 2.0 for identity management, ensure that the SAML URL destination is updated to "/connect/ccp-v2".
-
Review your network settings and consider using Option 1: Replace Amazon EC2 and CloudFront IP range requirements with a domain allowlist.
-
If you're still encountering issues, try clearing your browser cache and cookies, especially any entries associated with awsapps.com or connect.aws.
By implementing these changes, you should be able to resolve the Content Security Policy violation and successfully render the Connect CCP iframe in your application.
Sources
Allow the Amazon Connect Contact Control Panel (CCP) to access cookies - Amazon Connect
Improper restriction of rendered UI layers or frames | Amazon CodeGuru, Detector Library
Upgrade your Contact Control Panel (CCP) when using the Amazon Connect Streams API - Amazon Connect
answered 2 years ago
Relevant content
asked 4 years ago
asked 5 years ago

Thanks for the Comment that was exactly the problem we had thank you very much
I posted my answer below but this solution is still effective on Firefox as of October 2025.