iframe postmessage not working

postMessage was called. Understanding the probability of measurement w.r.t. I am using localhost/ 127.0.0.1 for testing, which might be the issue. If you do expect to receive messages from other sites, always verify the I'm developing a Lightning Component in which I'd like to re-use some functionality I have developed and hosted externally. On its own its fine, but inside an iframe, it does allow js. Is there a generic term for these trajectories? Where should I put