mirror of
https://github.com/searxng/searxng.git
synced 2026-03-19 00:00:20 -04:00
For videos from ``www.youtube.com`` this patch adds ``referrerpolicy`` and other by YT required permission policies for the iframe. API Clients that use the YouTube embedded player (including the YouTube IFrame Player API) must provide identification through the HTTP ``Referer`` request header[1]. If the error still occurs, check if server headers (e.g., in .htaccess or Nginx) are overriding the referrer policy[2]. [1] https://developers.google.com/youtube/terms/required-minimum-functionality#embedded-player-api-client-identity [2] hint comes from AI: https://chat.mistral.ai [3] https://developers.google.com/youtube/player_parameters Close: https://github.com/searxng/searxng/issues/5844 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>