Cross Domain Communication using postMessage Due to cross domain security measures communication between two different origin protocol sites are restricted. Communication is only possible when the two pages belongs to same origin protocol.