We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b88628 commit 4697764Copy full SHA for 4697764
src/lite-yt-embed.js
@@ -201,6 +201,8 @@ class LiteYTEmbed extends HTMLElement {
201
iframeEl.title = this.playLabel;
202
iframeEl.allow = 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture';
203
iframeEl.allowFullscreen = true;
204
+ // Required by Youtube to fix Error 153
205
+ iframeEl.referrerPolicy = 'strict-origin-when-cross-origin';
206
// AFAIK, the encoding here isn't necessary for XSS, but we'll do it only because this is a URL
207
// https://stackoverflow.com/q/64959723/89484
208
iframeEl.src = `https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${this.getParams().toString()}`;
0 commit comments