function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rakesh Sharma 78Rakesh Sharma 78 

page SecurityError: Blocked a frame with origin https://----.my.salesforce.com from accessing a frame with origin https://----.lightning.force.com Protocols, domains, and ports must match.

Hi,

I am trying to install Open CTI Demo adapter app on my lightening app. But after setup, when i click on phone it throws error.

SecurityError: Blocked a frame with origin "https://------.my.salesforce.com" from accessing a frame with origin "https://-----.lightning.force.com". Protocols, domains, and ports must match.

Couple of things i tried below like
1. whitelisting URL in CORS
2. Updating CTI adapter URL to include domain.
But i an still facing this issue and due to this phone comes as blank page (doesn't loads). I am testing on Safari/Chrome. Thanks in advance for your help.

-Rgds
Khan AnasKhan Anas (Salesforce Developers) 
Hi Rakesh,

I trust you are doing very well.

Please refer to the below link with a similar discussion which might help you further with the above issue.

https://github.com/developerforce/open-cti-demo-adapter/issues/4

https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame

https://stackoverflow.com/questions/19837354/chrome-blocks-different-origin-requests


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas