From 9833b59b7083a46796c5cbeb0411df6f9923cf83 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Tue, 5 Jul 2022 12:25:27 -0300 Subject: [PATCH] FEATURE: Allow iframe `allow` attribute in posts (#17291) This is used so iframes can use mic, camera, EME, etc. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy#directives lists current possible values Feature request https://meta.discourse.org/t/iframe-attributes-not-working/127383?u=falco --- app/assets/javascripts/pretty-text/addon/allow-lister.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/pretty-text/addon/allow-lister.js b/app/assets/javascripts/pretty-text/addon/allow-lister.js index b044c7cc073..91a33bef3f3 100644 --- a/app/assets/javascripts/pretty-text/addon/allow-lister.js +++ b/app/assets/javascripts/pretty-text/addon/allow-lister.js @@ -171,6 +171,7 @@ export const DEFAULT_LIST = [ "iframe[marginwidth]", "iframe[width]", "iframe[allowfullscreen]", + "iframe[allow]", "img[alt]", "img[height]", "img[title]",