Context: we are handling the communication from embedded framework to our web page using contentWindow.postMessage() according to https://developer.mypurecloud.com/forum/t/embeddable-framework-accessing-parent-page/3099/2
Found example in https://github.com/MyPureCloud/embedded-crm-pef-example/blob/master/public/framework.js
In framework.js
crmDomain = new URLSearchParams(window.location.search).get('crm_domain');
< **iframe allow="camera *; microphone ; autoplay " src="https://apps.mypurecloud.com/crm/embeddableFramework.html?enableFrameworkClientId=true&crm_domain= https://localhost ” width="100%" height="100%" ></ iframe >
We use the domain specified in the iframe url. I am wondering if there is an alternative way for doing that for security concerns. thanks