Browse Source

fix: clicking youtube links in iframes returns ERR_BLOCKED_BY_RESPONSE

Kristof Mattei 2 years ago
parent
commit
d53ad3b79a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/reader/sanitizer/sanitizer.go

+ 1 - 1
internal/reader/sanitizer/sanitizer.go

@@ -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: