I’m having an issue with YouTube embeds on my Netlify site. I’ve done some research into this and I think the problem might be to do with the referrer policy enforced by Netlify but I don’t know enough about this to be able to fix the problem.
When I visit the site, I get a “video unavailable” on all embeds. I’ve confirmed that these are allowed to be embedded, and besides they previously worked fine a few months ago but the client I built the site for is now reporting that they’ve stopped working.
(scroll about half way down)
I use Sanity to manage the content and the same embedded video in the Sanity Studio plays fine. It’s only on the actual, Netlify hosted, site where it won’t play.
From the research I’ve done it looks like YouTube require a less strict referral policy such as “no-referrer-when-downgrade”.