Skip to content

Failed to execute postMessage on DOMWindow #66

@spyesx

Description

@spyesx

Hi !

The following error keeps showing up constantly for a few days.

  • the website uses HTTPS
  • there is no autoplay
  • the origin is set manually just in case (ie: no window.location.origin)
www-widgetapi.js:629 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://youtube.com') does not match the recipient window's origin ('https://www.DOMAIN.TLD').

Tested on Chrome, Firefox and Safari.

The code is as follow:

      this._player = new YTPlayer('#player', {
        width: '100%',
        height: '100%',
        caption: false,
        controls: false,
        keyboard: false,
        fullscreen: true,
        annotations: false,
        modestBranding: true,
        related: false,
        host: 'https://www.youtube.com',
        showInfo: false,
        origin: 'https://www.DOMAIN.TLD'
      })
      this._player.load(this._YTVideoID)

Did I miss something?

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