SpinTheMic
Pro

Explain it in 60 seconds

Secure cross-window communication patterns

Frontend Engineering · Frontend System Design · Intermediate

What security rules apply when frontend apps communicate across windows, iframes or tabs?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • postMessage: always specify target origin.
  • Validate event.origin and message shape.
  • Never eval or inject message data as HTML.
  • BroadcastChannel same-origin only.
  • Minimise exposed capabilities.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics