# مشكلة iframe بدون عنوان URL

**URL:** <https://meta.discourse.org/t/iframe-issue-without-url/115512>\
**Category:** Product Support\
**Created:** [20 أبريل 2019، 2:01ص UTC](https://meta.discourse.org/t/iframe-issue-without-url/115512 "2019-04-20T02:01:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![waffleslop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/waffleslop/32/244974_2.png) [@waffleslop](https://meta.discourse.org/u/waffleslop)\
**Post date:** [6 مايو 2019، 12:46ص UTC](https://meta.discourse.org/t/iframe-issue-without-url/115512/7 "2019-05-06T00:46:00Z")

</div>

Still having issues.

I’m unable to get this script to display on my Discourse site:

`<script src="https://cmox.cdn.vooplayer.com/assets/vooplayer.js"></script><iframe allow="autoplay" class="video-player-container vooplayer" data-playerId="MTU1NTMy" allowtransparency="true" style="max-width:100%" name="vooplayerframe" allowfullscreen="true" src="https://cmox.cdn.vooplayer.com/publish/MTU1NTMy" frameborder="0" scrolling="no"> </iframe>`

I have allowed the Script and iFrame:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/e/deca1dc5e73a70281fab745b46c27139360a8b69.png) ![image](https://global.discourse-cdn.com/meta/original/3X/1/2/1231e92e4bfc558a74183aabe9c512d2830ba378.png)

I put together a simple plugin and installed it:  
[https://github.com/waffleslop/discourse-vooplayer](https://github.com/waffleslop/discourse-vooplayer)

The code I have is as follows:  
`Discourse.Markdown.whiteListTag("div", "style", /[a-z]+/); Discourse.Markdown.whiteListTag("div", "class", /[a-z]+/); Discourse.Markdown.whiteListTag("iframe", "class", /[a-z]+/); Discourse.Markdown.whiteListTag("iframe", "style", /[a-z]+/);`

However when I try to embed the video, this is what happens:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/b/fb2d80361ffa0810d7d79d0d04e1f08e64822669.png)

It looks like Discourse is stripping `style` and `class` from the embed.

Similarly, I am finding this:  
`<div class="123">test</div>`  
to be displayed as:  
`<div>test</div>`

It looks like Discourse is stripping all class/style, even from simple divs.

What can I do to get this to work?

Thank you!

---

_[View the full topic](https://meta.discourse.org/t/iframe-issue-without-url/115512)._
