Fix embed youtube 153 error by adding referrer-policy header (#1672)

This commit is contained in:
Rodolfo Souza
2025-11-08 12:17:21 +01:00
committed by GitHub
parent cccf40fdb1
commit b146d53aa5
+2 -1
View File
@@ -51,7 +51,8 @@ function embed.youtube(specOrUrl)
return widget.html(dom.iframe {
src="https://www.youtube.com/embed/" .. videoId,
style="width: " .. width .. "; height: " .. height,
class = "sb-video-embed"
class = "sb-video-embed",
referrerpolicy = "strict-origin-when-cross-origin"
})
end