Skip to content

YouTube embed missing referrerpolicy #1998

@Slgoetz

Description

@Slgoetz

it seems that without referrerpolicy: 'strict-origin-when-cross-origin', there is a Error 153.

"react-player": "^3.3.3"

<ReactPlayer
                  style={videoPlayerStyle}
                  src={videoUrl}
                  width="100%"
                  height="100%"
                  controls={true}
                  playing={false} // Don't autoplay
                  config={{
                     youtube: {
                        origin: window.location.origin,
                        enablejsapi: 0,
                     },
                  }}
               />
<iframe src="https://www.youtube.com/embed/fOAIrUZbOwo?preload=metadata&amp;enablejsapi=0&amp;showinfo=0&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1&amp;origin=http%3A%2F%2Flocalhost%3A3333" frameborder="0" width="100%" height="100%" allow="accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture" data-config="{&quot;origin&quot;:&quot;http://localhost:3333&quot;,&quot;enablejsapi&quot;:0}" id="widget2"></iframe>

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