r/dndbeyond • u/Cyb3rM1nd • 11h ago
Site Feedback D&D Beyond Forums - YouTube Video Embeds Broken & The Fix
To see this as a post on D&D Beyond with examples please see here:
Some of you may have noticed that when you use the embed video button to add a youtube video into the post the video is blocked with an error message like "ERR_BLOCKED_BY_CSP".
This happens because not too long ago D&D Beyond implemented K-ID to ensure compliance with certain Online Safety legislation changes. This required a change in the 'Content Security Policy', or CSP, that required Youtube embedded videos to now be run through the youtube-nocookie domain instead of just the main youtube.com one, to ensure the embed cannot drop cookies to the device watching the embedded Youtube video. The nocookie domain version is owned by Youtube and is their service so people can continue to use embeds while complying with the new laws. However, D&D Beyond hasn't updated their embed tool to recognise or use the new domain service, hence the error when it's used.
How To Fix - For The User
You can resolve this for your posts by changing the domain. Click the embed button and use the usual link (if you try the nocookie one it displays an error telling you it's not recognised). After this click the </> icon above the textbox you type your post into. This will display the HTML code. Just look for the youtube.com and change to youtube-nocookie.com.
NOTE: If the video has multiple linked collaborators the video not play in an embed. This is a separate issue there is no fix for this.
How To Fix - For D&D Beyond
It would be nice if the D&D Beyond peeps can change the embed button tool to automatically change the youtube.com into youtube-nocookie.com. This will fix the embed button.