# I have issue to embed Youtube video - YouTube Error 153

**URL:** https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672
**Category:** Support
**Created:** [5 בנובמבר,‏ 2025,‏ 2:06pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672 "2025-11-05T14:06:48Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [5 בנובמבר,‏ 2025,‏ 2:06pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/1 "2025-11-05T14:06:48Z")

</div>

I have issue to embed Youtube video

[![](https://global.discourse-cdn.com/meta/original/4X/b/f/c/bfc5bb130cabc3058f4af1a74565c708ec934dd0.jpeg "AI Accountants Are Here - Should You Be Worried? (QuickBooks AI Agents)") ](https://www.youtube.com/watch?v=Ci4UogS3m5s)

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [5 בנובמבר,‏ 2025,‏ 2:13pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/2 "2025-11-05T14:13:13Z")

</div>

this is my topic link

> **[هل تتغير مهنة المحاسبة بسبب الذكاء الاصطناعي للدرجة التي سيتم فيها الاستغناء...](https://mohasaba.net/t/hl-ttghyr-mhnt-almhasbt-bsbb-aldhkae-alastnaey-lldrjt-alty-sytm-fyha-alastghnae-en-almhasbyn-rwyt-nwfmbr-2025/281012)**
>
> هل غيّر الذكاء الاصطناعي مهنة المحاسبة؟ 🤖💼 الوصف (Meta Description): تعرف في هذا المقال على مدى تأثير الذكاء الاصطناعي على مهنة المحاسبة، وكيف يمكن للمحاسبين مواكبة التحول القادم في سوق العمل. تحليل شامل لتغيّر الدور المهني وأدوات النجاح...

---

<div class="post-metadata">

### Author: ![patrickemin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickemin/32/520162_2.png) [@patrickemin](https://meta.discourse.org/u/patrickemin)
#### Post date: [5 בנובמבר,‏ 2025,‏ 2:26pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/3 "2025-11-05T14:26:42Z")

</div>

What is the issue you have ?

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [5 בנובמבר,‏ 2025,‏ 2:34pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/4 "2025-11-05T14:34:14Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/3/a/c/3ac7b1b3025d8604eb66fa4f8b67daeb0dd56894.png)

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [5 בנובמבר,‏ 2025,‏ 6:20pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/5 "2025-11-05T18:20:20Z")

</div>

Any solution for this issue, Are there any settings should be directly related to this

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [5 בנובמבר,‏ 2025,‏ 11:40pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/6 "2025-11-05T23:40:38Z")

</div>

Does it occur in [safe mode](https://meta.discourse.org/t/53504?silent=true)? Are there any browser errors? Thanks.

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [6 בנובמבר,‏ 2025,‏ 9:43am UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/7 "2025-11-06T09:43:07Z")

</div>

I tried everything and nothing is working  
all the Youtube videos not working in my website and giving me this error

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [7 בנובמבר,‏ 2025,‏ 10:05am UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/8 "2025-11-07T10:05:36Z")

</div>

> [@hameedacpa](#):
>
> I tried everything

@hameedacpa, you’ve not… To demonstrate, this appears to have been solved elsewhere:

> **[Error 153 when Embedding Youtube Videos](https://forum.obsidian.md/t/error-153-when-embedding-youtube-videos/105592/9?u=rokejulianlockhart)**
>
> Someone posted a possible solution here: It’s in Japanese, but a quick translation: Reason: This is because Obsidian has a third-party cookie for the YouTube domain, which causes the error. Workaround: Open Chrome DevTools in Obsidian and...

Have you already tried any online solutions?

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [7 בנובמבר,‏ 2025,‏ 11:42am UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/9 "2025-11-07T11:42:33Z")

</div>

I don’t think it is relevant for the my case

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [7 בנובמבר,‏ 2025,‏ 12:01pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/10 "2025-11-07T12:01:26Z")

</div>

@hameedacpa, why? It’s the same error code.

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [7 בנובמבר,‏ 2025,‏ 12:19pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/11 "2025-11-07T12:19:40Z")

</div>

Unfortunately I tried the solution recommended but it is not working, I believe it is something internally

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [7 בנובמבר,‏ 2025,‏ 1:23pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/12 "2025-11-07T13:23:30Z")

</div>

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](https://meta.discourse.org/t/53504?silent=true)…

@hameedacpa What about adding `https://youtube.com/` to the `allowed_iframes` setting? Not sure if that’ll help though.

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [7 בנובמבר,‏ 2025,‏ 2:58pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/13 "2025-11-07T14:58:26Z")

</div>

I done this but no benefit

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/a/e6a63167ebb7b3b9b8693ee6c531d8afe8206432.png)

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [7 בנובמבר,‏ 2025,‏ 6:04pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/14 "2025-11-07T18:04:16Z")

</div>

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:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/e/2/9e2346a46c2fa3561954bd9e548745cb1e34589d.png)

> **[Fedora-KDE-43 review](https://linuxcommunity.io/t/fedora-kde-43-review/5952/7?u=hydn)**
>
> We do! Gnome! 🫣 I think it had a bad rep a while back and so most people have not really given it a 2nd look since.

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:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/4/f/e4fd2c1243a5c8e9a029ee510a4ddde9b9738301.jpeg)

**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:

[https://blog.scriptnet.net/how-to-fix-the-youtube-error-153](https://blog.scriptnet.net/how-to-fix-the-youtube-error-153)

Without these, YouTube rejects configuration requests from the iframe and you see Error 153.

Also see:

> <https://stackoverflow.com/questions/79802987/youtube-error-153-video-player-configuration-error-when-embedding-youtube-video>

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [7 בנובמבר,‏ 2025,‏ 6:58pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/15 "2025-11-07T18:58:40Z")

</div>

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:

1. In Cloudflare, go to **Rules → Transform Rules → HTTP Response Header Modification.**

2. Create a new rule, choose **All incoming requests** , and add a static header:

3. Deploy the rule.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/e/9/ce94a1026629e7eed4914fb2727c3ad46d930cea.png)

Will remove this once patched.

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [8 בנובמבר,‏ 2025,‏ 10:47am UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/16 "2025-11-08T10:47:40Z")

</div>

thank you very much for all of you

I found the issue was in the following change that should be done in vhost file

the following coming from ChatGPT

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/1/d/01dc641db73d6eb03204ee9a54d8a104bebda376.png)

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [8 בנובמבר,‏ 2025,‏ 9:49pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/17 "2025-11-08T21:49:59Z")

</div>

> [@hameedacpa](#):
>
> change that should be done in vhost file

hm 🤔

It is my understanding that the way Discourse works is that the Nginx change you just made inside that container will be wiped out on the very next `./launcher rebuild app` or via UI upgrade.

If you want that change to persist, you shouldn’t edit inside the running Discourse container. But instead, make the change in `/var/discourse/containers/app.yml` so it persists across rebuilds and updates.

Once added, you can rebuild:

```plaintext
./launcher rebuild app

```

Not everyone uses Cloudflare, but that’s why I went with Cloudflare for this fix. Didn’t have to rebuild and just a temp workaround.

Since security headers work so that the last one received is what the browser honors, works.

It was just the quickest and least intrusive way to get things working. But if you’re doing it inside the container, just keep in mind you’ll have to redo it every time you rebuild or update Discourse. 🙂

---

<div class="post-metadata">

### Author: ![hameedacpa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hameedacpa/32/520681_2.png) [@hameedacpa](https://meta.discourse.org/u/hameedacpa)
#### Post date: [9 בנובמבר,‏ 2025,‏ 6:01am UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/18 "2025-11-09T06:01:33Z")

</div>

I am using CloudPanel with Vhost and I modified the previous solution based on the recommendation of ChatGPT as follow:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/2/4/424c625180f4017165b8cf5565925dd8e0fbf186.png)

---

<div class="post-metadata">

### Author: ![Foriusz](https://avatars.discourse-cdn.com/v4/letter/f/a698b9/32.png) [@Foriusz](https://meta.discourse.org/u/Foriusz)
#### Post date: [9 בנובמבר,‏ 2025,‏ 5:37pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/19 "2025-11-09T17:37:19Z")

</div>

We had the same problem months ago but for just 3 users. Our host guy was away and noone had access to host settings and we came up with this:

Edit theme and add this to “head”

`<meta name="referrer" content="strict-origin-when-cross-origin">`

---

<div class="post-metadata">

### Author: ![eisammy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eisammy/32/528804_2.png) [@eisammy](https://meta.discourse.org/u/eisammy)
#### Post date: [10 בנובמבר,‏ 2025,‏ 1:50pm UTC](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672/20 "2025-11-10T13:50:46Z")

</div>

Your solution works with this metatag

> [@Foriusz](#):
>

[Next page](https://meta.discourse.org/t/i-have-issue-to-embed-youtube-video-youtube-error-153/387672.md?page=2)
