XF 2.2 BB Code for brandnewtube

Tradidi

New member
I'm trying to setup a BB Code for brandnewtube.com videos. I managed to extra the {id}, but when I try to show the embedded video with this HTML:

<div class="bbMediaWrapper">
<div class="bbMediaWrapper-inner">
<iframe src="https://brandnewtube.com/embed/{$id}"
frameborder="0" width="700" height="400"
allowfullscreen></iframe>
</div>
</div>

.. the browser reports the following error message..

refused to display <url> in a frame because it set 'x-frame-options' to 'sameorigin'

.. where <url> is the url I'm trying to display.

Any ideas how to solve this?
 

Mike

XenForo developer
Staff member
That looks to be an issue with the site in question. I don't think their embed can actually work correctly as is because of the X-Frame-Options header they're sending.
 

Tradidi

New member
That looks to be an issue with the site in question. I don't think their embed can actually work correctly as is because of the X-Frame-Options header they're sending.
Thanks, I was afraid of that. I'll send them an email and see if they can change their headers.
 
Top