Skip to content

Conversation

@slax57
Copy link
Contributor

@slax57 slax57 commented Nov 19, 2025

Problem

Youtube integrations in the doc pages show an error and invite users to view the video on youtube instead.

image

Solution

This seems to be because the 'Referer' header is not passed. Adding the referrerpolicy="strict-origin-when-cross-origin" attribute directly to the YouTube iframes seems to fix the issue.

How To Test

  • Locally: edit the docs/_layouts/default.html file and add the following tag to the header to reproduce the issue: <meta name="referrer" content="no-referrer" />. Then, make sure the videos are properly loaded thanks to the fix.
  • In production: find a page with a youtube video. Use the DevTools to edit the iframe and add the referrerpolicy attribute like this PR does. Then duplicate the iframe node, and confirm this time the video is properly loaded.

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature

@slax57 slax57 added the RFR Ready For Review label Nov 19, 2025
@djhi djhi added this to the 5.13.2 milestone Nov 19, 2025
@djhi djhi merged commit 50d8210 into master Nov 19, 2025
15 checks passed
@djhi djhi deleted the doc-fix-youtube branch November 19, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Development

Successfully merging this pull request may close these issues.

3 participants