Domain specific postMessage

Hi all,
Referring to Trigger interface method to open modal from iframe, we are trying to postMessage from iFrame. it is working fine if we are using
iframe.contentWindow.postMessage(message, “*”);
However, I need to make it domain specific, so that no other domain can read the message. I tried - ```
iframe.contentWindow.postMessage(message, “abcd.freshdesk.com”);
It is not wokring if we are going domain specific. Can you please confirm what domain need to be passed in iframe in CTI app to catch message from inside the app

Hi @Dev_Aditya ,

Can you try with providing complete url of targetOrigin like https://abcd.freshdesk.com as referred in here

I tried that. Still not working. Is domain different that reads message in CTI custom message?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.