1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Add 'allow-popups' to iframe sandbox permissions

This commit is contained in:
Jeremy Apthorp 2019-03-26 18:26:56 -07:00 committed by fguillot
parent 3a483be258
commit 304b43cb30
2 changed files with 7 additions and 7 deletions

View file

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