postMessage protocol (v1)
All messages includev: 1.
Parent → iframe
iframe → parent
Hardening
- Compare
event.originto the token’sframeOrigin - Require
event.source === iframe.contentWindow - Pass an explicit
targetOrigintopostMessage - Ignore non-
rendercommands until token verification succeeds