1
0
Fork 0

Allow iframes pointing to Twitch videos

Docs: https://dev.twitch.tv/docs/embed/video-and-clips/#non-interactive-inline-frames-for-live-streams-and-vods
This commit is contained in:
Nicholas Parker 2023-10-27 17:24:53 +13:00 committed by Frédéric Guillot
parent a1537f4b0d
commit 257e8c4761

View file

@ -351,6 +351,7 @@ func isValidIframeSource(baseURL, src string) bool {
"https://bandcamp.com",
"https://cdn.embedly.com",
"https://player.bilibili.com",
"https://player.twitch.tv",
}
// allow iframe from same origin