From 2bb8ac17c664b71cc7110acaaa5d4200c8a9bd0b Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 17 Mar 2026 19:52:46 +0100 Subject: [PATCH] [fix] Youtube video - "Error 153" send HTTP Referrer (referrerpolicy) (#5858) 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 --- searx/templates/simple/result_templates/videos.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/searx/templates/simple/result_templates/videos.html b/searx/templates/simple/result_templates/videos.html index 8771cea1f..dcd127679 100644 --- a/searx/templates/simple/result_templates/videos.html +++ b/searx/templates/simple/result_templates/videos.html @@ -18,7 +18,11 @@ {{- result_sub_footer(result) -}} {% if result.iframe_src -%} {%- endif %} {{ result_footer(result) }}