iamcal / oembed

The oEmbed Spec
http://oembed.com
MIT License
1.31k stars 643 forks source link

Is not possible to embed youtube playlist using oembed #722

Closed Eduardo-Morales-Alberti closed 9 months ago

Eduardo-Morales-Alberti commented 9 months ago

We are using drupal 10.1.6 with media to embed youtube videos.

When we try to embed a youtube playlist using the URL "https://youtube.com/playlist?list=PLpeDXSh4nHjRbK4e6xsJ5-EFkDLOAPYfc" we get the error: "Refused to frame 'http://mysite.docker.localhost:8000/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".". This header seems to come from youtube.

But if we change to URL "https://www.youtube.com/embed/videoseries?list=PLpeDXSh4nHjRbK4e6xsJ5-EFkDLOAPYfc" then the video list is shown.

Currently oembed only support https://youtube.com/playlist and not https://www.youtube.com/embed/videoseries, so is not possible to embed playlist on Drupal.

Maybe the error comes from other site, but we need more information.

Eduardo-Morales-Alberti commented 9 months ago

Sorry the problem came from the Webserver, it had frame-ancestors 'none'. We can close it.