I have issue to embed Youtube video
I have issue to embed Youtube video
What is the issue you have ?
Any solution for this issue, Are there any settings should be directly related to this
Does it occur in safe mode? Are there any browser errors? Thanks.
I tried everything and nothing is working
all the Youtube videos not working in my website and giving me this error
@hameedacpa, you’ve not… To demonstrate, this appears to have been solved elsewhere:
Have you already tried any online solutions?
I don’t think it is relevant for the my case
@hameedacpa, why? It’s the same error code.
Unfortunately I tried the solution recommended but it is not working, I believe it is something internally
Not sure if this is related, but I see an awful lot of cookies being blocked.
Also, no errors in the console and still happens in safe mode…
@hameedacpa What about adding https://youtube.com/ to the allowed_iframes setting? Not sure if that’ll help though.
Hopefully this helps +1 the OP’s complaint. Without any changes (I’m on stable branch), I also have the same error even when you click play on an existing video that used to work:
I’ve tried, via mobile, bypassing office firewall, disabling Cloudflare. No fix yet.
Testing here is mixed with error in the editor but displays in the forum:
Update:
YouTube recently tightened its policies so that new embed codes now include referrerpolicy=“strict-origin-when-cross-origin” along with updated allow attributes. I found this article:
Without these, YouTube rejects configuration requests from the iframe and you see Error 153.
Also see:
I was able to fix this with Cloudflare until it’s officially patched.
For anyone running into the same issue, the cause is that YouTube now rejects embed requests missing a valid referrer policy header.
I added a Referrer-Policy header through Cloudflare’s Transform Rules (no Workers needed).
Here’s what I did:
In Cloudflare, go to Rules → Transform Rules → HTTP Response Header Modification.
Create a new rule, choose All incoming requests, and add a static header:
Header name: Referrer-Policy
Value: strict-origin-when-cross-origin
Deploy the rule.
Will remove this once patched.