fix: clicking youtube links in iframes returns ERR_BLOCKED_BY_RESPONSE
This commit is contained in:
parent
698bea4ec8
commit
d53ad3b79a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue