Skip to content

bug(@angular/youtube-player): Failed to execute 'postMessage' on 'DOMWindow' #22835

Closed
@mbatyra

Description

@mbatyra

Reproduction

I'm using @angular/youtube-player@11.2.13 as lazy loaded component with kendo-dialog. Youtube video is loaded correctly but usually i'm getting error in console before load:

www-widgetapi.js:722 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost:8000').

The error appears on localhost and also on production.

Expected Behavior

Youtube video is loaded without error.

Environment

  • Angular: 11.2.14
  • CDK/Material: 11.2.13
  • @angular/youtube-player: 11.2.13
  • Browser(s): Chrome 90.0.4430.212
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions