YouTube Live Chat embed now working on non-www website

I have code that embeds a live YouTube chat into my website. It works flawlessly on one of my website with a www in the domain. However when using the same code on a different website without the www, it doesn’t work.

Code:

<iframe
src="https://youtube.com/live_chat?v=sca81R6Ar4I&embed_domain=example.org"
frameborder="0"
allowfullscreen="allowfullscreen"
>
</iframe>

This works flawlessly if the code looks like this:

<iframe
src="https://youtube.com/live_chat?v=sca81R6Ar4I&embed_domain=www.example.org"
frameborder="0"
allowfullscreen="allowfullscreen"
>
</iframe>

79 thoughts on “YouTube Live Chat embed now working on non-www website”

Leave a Comment