I have added a codesandbox iframe with different attributes but Discourse is just getting the src. Should I change something in Discourse Settings? I have already allowed this iframe and it is showing, but not correctly.
Just to be sure, did you add the iframe url (https://codesandbox.io/embed/codesandbox-frontity-rnclp) in whitelist? If not, search the site setting allowed iframes.
I am also running into this problem. I would like to add a class on the IFRAME that I am embedding in my policy privacy post, which embeds the privacy tracking settings from our self-hosted Matomo installation. This would allow me to add a better border and some color to differentiate it from the rest of the privacy policy.
Despite having a class="foo" in my IFRAME element, it is being stripped out, apparently by the white-lister code above. Any chance this could be expanded to have a few more attributes allowed?
Rafael thanks for the statement, it clarifies my observed behaviour.
I would like to know whether you have any plans of releasing that lock for audio/video attributes of an iframe. Modern browsers manage accessibility quite good for those allowances, and there are increasingly interesting service offerings which would be great to integrate by users but just lack this type of accessibility.
Thanks.
سيكون هذا مفيدًا، ولكننا سنكون سعداء أيضًا بإدراج السمة allow في القائمة البيضاء للجميع. نواجه حاليًا مشكلات في تشغيل الصوت مع مشغلات البودكاست المضمنة من Apple و Spotify. كما ذكر آخرون، تكمن المشكلة في أنه يتم تجريد السمة allow، والتي تحتوي على توجيه encrypted-media مهم.
نظرًا لأننا صرنا بالفعل صارمين بشأن النطاقات التي يمكن استخدامها في إطارات iframe، فإن وجود إعداد آخر نحدد فيه السلسلة allow لكل إطار iframe وتحليل تنسيق محتوى allow الغريب يبدو كثيرًا بالنسبة لي.
لقد قمت بإنشاء طلب سحب (PR) يسمح ببساطة باستخدام أي شيء في السمة allow لإطارات iframe المسموح بها بالفعل: