Youtube video component showing "Video Unavailable"

I have an app that grabs MLB Highlights from youtube and displays them.
The video ID’s are set correctly but do not show any video thumbnail instead it says "Video Unavailable Watch on Youtube. (Screen shot attached)

–Example URL that shows unavailable message
Astros vs. Rangers Game Highlights (6/13/22) | MLB Highlights - YouTube

image

Anyone else have this issue. It just started a few weeks ago.

This is an issue with YouTube itself and not Anvil. A quick google search can return lots of results regarding it.

Although it appears to be an issue when using subdomains. A custom domain might solve things

True might be because of the video id is incorrect.

Adding this to your Native Library should solve the issue.

<script>
document.querySelectorAll('[name="referrer"]')[0].content='origin'
</script>

Although be aware about what it actually does