fix: clicking youtube links in iframes returns ERR_BLOCKED_BY_RESPONSE

This commit is contained in:
Kristof Mattei 2023-12-10 12:36:09 -07:00 committed by Frédéric Guillot
parent 698bea4ec8
commit d53ad3b79a

View file

@ -174,7 +174,7 @@ func getExtraAttributes(tagName string) ([]string, []string) {
case "video", "audio":
return []string{"controls"}, []string{"controls"}
case "iframe":
return []string{"sandbox", "loading"}, []string{`sandbox="allow-scripts allow-same-origin allow-popups"`, `loading="lazy"`}
return []string{"sandbox", "loading"}, []string{`sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"`, `loading="lazy"`}
case "img":
return []string{"loading"}, []string{`loading="lazy"`}
default: