# אפשרות להצגת סרטוני PeerTube ב-onebox דרך הגדרת iframes מורשים

**URL:** https://meta.discourse.org/t/allowing-peertube-video-oneboxes-via-the-allowed-iframes-setting/171486
**Category:** Support
**Created:** [27 בנובמבר,‏ 2020,‏ 11:53am UTC](https://meta.discourse.org/t/allowing-peertube-video-oneboxes-via-the-allowed-iframes-setting/171486 "2020-11-27T11:53:22Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [27 בנובמבר,‏ 2020,‏ 11:53am UTC](https://meta.discourse.org/t/allowing-peertube-video-oneboxes-via-the-allowed-iframes-setting/171486/1 "2020-11-27T11:53:22Z")

</div>

Continuing the discussion from [Peertube embedding?](https://meta.discourse.org/t/peertube-embedding/102687):

Trying to add a PeerTube instance to the `allowed_onebox_iframes` I get the following error: invalid choice. Hmm, what? How to solve this?

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/1/51b7d6d7386038ba8c1cef790711962600109abd.png)

## Tip / Caveat for embedding Peertube videos

Use `https://peertube.instance.example/videos` in the `allowed_iframes` site setting to support both cases of `/videos/watch/<uuid>` and `/videos/embed/<uuid>`, the latter being used by the peertube onebox when you paste the former!

---

_[View the full topic](https://meta.discourse.org/t/allowing-peertube-video-oneboxes-via-the-allowed-iframes-setting/171486)._
