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
jasmin menezesjasmin menezes 

OpenCTI callback not being called when two level loadbalancer used. Please help

When the two level load balancer used, say "agent.xyz.com" which will redirect to either "agent1.xyz.com" or "agent2.xyz.com" using round robin fashion. So "agent.xyz.com" is the first level loadbalancer url which is configured and say it is redirected to "agent1.xyz.com" so the window origin will be "agent1.xyz.com". 
We have a method "processPostMessage" in InteractionFramework.js there is a security check to verify the origin.

if (a.origin !== Sfdc.interaction.sofphoneEventOriginUrl) Sfdc.interaction.doPostMessage(null, null, LC.getLabel("InteractionApi", "InvalidSoftphoneIframeOrigin")); 

Since a.origin is "agent1.xyz.com" and sofphoneEventOriginUrl is "agent.xyz.com" the security check conditon fails . Hence we are unable to hit the saleforce api's. Since it is a load balancer we cant change the url's manually. Is there any other work arround to fix this.