ARTICLE AD BOX
When I try to use a youtube video embed in html code, I get Error 153 Video player configuration error. I've researched it and saw stuff about referrer policy, I tried that and even with the "right" one it still doesn't work. I also tried different browsers. How to solve this?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width='device-width', initial-scale=1.0"> <meta name="referrer" content="strict-origin-when-cross-origin"> <title>Document</title> </head> <body> <iframe width="1713" height="963" src="https://www.youtube.com/embed/wDchsz8nmbo" title="1 Minute Sample Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> </body> </html>

2,2541 gold badge16 silver badges32 bronze badges
Even though you have referrerpolicy="strict-origin-when-cross-origin", the problem likely comes from the <meta name="referrer" tag in your HTML's <head> this tag overrides the iframes policy and is likely stripping the referrer information before it reaches YouTube.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>YouTube Video Embed</title> </head> <body> <iframe width="1713" height="963" src="https://www.youtube.com/embed/wDchsz8nmbo" title="1 Minute Sample Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen> </iframe> </body> </html>This second version removes the referrerpolicy attribute entirely, letting the browser use its default behavior which typically works fine with YouTube.
Save either version as an HTML file and open it in your browser. The video should now play without the error 153 message.
7,797118 gold badges58 silver badges87 bronze badges
New contributor
Domenic is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Explore related questions
See similar questions with these tags.
