2
Vote

Iframe to YouTube doesn't work

description

When I post a YouTube iframe link in AF 5.2.2. on DNN 7.2.2 I get a message about internal server error and the content of the iframe doesn't show up while the rest of the post is perfectly visible.

The HTML and javascript options are enabled for that forum.

Is there some kind of internal cross site scripting block involved in AF? If so, how can it be circumvented?

comments

Greg_Greensky wrote May 29, 2014 at 10:27 PM

Disregard this thread. I have AF working with it now. It was a matter of malformed link.

wrote Jan 6, 2015 at 10:14 AM

skiank wrote Jan 16, 2015 at 8:22 PM

The issue is in the URL conversion.

Youtube iframe code is formatted so:
<iframe width="560" height="315" src="//www.youtube.com/.........." frameborder="0" allowfullscreen></iframe> When you save the discussion AF convert the URL in:
<iframe width="560" height="315" src="http://www.mydnndomain.it/...//www.youtube.com/.........." frameborder="0" allowfullscreen></iframe> As workaround you can add an "http:" before "//" in the src