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>

enter image description hereenter image description here

jsotola's user avatar

jsotola

2,2541 gold badge16 silver badges32 bronze badges

YAKOBISAAC's user avatar

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.

Jeremy Caney's user avatar

Jeremy Caney

7,797118 gold badges58 silver badges87 bronze badges

Domenic's user avatar

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.

1 Comment

Even using your version I still have the error code 153, I checked the network tab using the chrome dev tools and I also can see "blocked:origin" on status

2026-04-05T23:52:53.403Z+00:00

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.