Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided does not match the recipient window’s origin (‘null’)

Make sure the target window that you (or Facebook) is posting a message to, has completed loading. Most of the times I’ve gotten this error were when an iframe I was sending messages to had failed to load.

Leave a Comment