Skip to content

'postMessage' on 'DOMWindow' error, how to get rid of it or at least supress it? #85

@andrewdobra

Description

@andrewdobra

I'm working on a project where we have several videos loading on the same page and we've run into this error that also shows up in your example of multiple-videos.

The exact text is "Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://127.0.0.1:8000')." but I guess you're already familiar with it.

We've tried multiple fixes from the web, we've even done our own implementation but to no avail, do you know how get rid of this error or at least suppress it such that it doesn't pollute the console? One thing to note is that in our implementation there were only half the number of errors so probably some requests or "postMessage" calls repeat more often in yours.

EDIT: One thing I forgot to mention, the videos do load after all, the problem is just that the errors show up in console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions