# السماح للنطاقات الفرعية من نطاق محظور بـ onebox

**URL:** <https://meta.discourse.org/t/allow-sub-domains-from-blocked-domain-to-onebox/268737>\
**Category:** Product Support\
**Tags:** onebox\
**Created:** [17 يونيو 2023، 1:59م UTC](https://meta.discourse.org/t/allow-sub-domains-from-blocked-domain-to-onebox/268737 "2023-06-17T13:59:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [3 يوليو 2023، 12:06م UTC](https://meta.discourse.org/t/allow-sub-domains-from-blocked-domain-to-onebox/268737/5 "2023-07-03T12:06:07Z")

</div>

يوجد نص برمجي محدد لـ Replit oneboxes:

> <https://github.com/discourse/discourse/blob/7a204e754c17d1e8229bb782c17f450813c201ec/lib/onebox/engine/replit_onebox.rb>

عندما نقوم بلصق رابط Replit، يعرض المحرر النتيجة المتوقعة:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/e/2/9e218acadeb34280c61e4bda58c9fc1cb14d19ac.png)

عند معالجة المنشور، يتم تحويل الرابط إلى iframe فارغ.

```html
<iframe width="695" height="521" frameborder="0" data-unsanitized-src="https://replit.com/@Firepup650/Yeehaw?embed=true" seamless="seamless" sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation">
#document
  <html>
    <head></head>
    <body></body>
  </html>
</iframe>

```

لا أعرف ما إذا كانت المشكلة تأتي من Replit أو من نص onebox البرمجي. أظن أنها من النص البرمجي، لكنني لست مبرمجًا 🙂  
الرابط يحتوي على علامات opengraph المناسبة، على الرغم من ذلك: [https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Freplit.com%2F%40Firepup650%2FYeehaw](https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Freplit.com%2F%40Firepup650%2FYeehaw)

---

_[View the full topic](https://meta.discourse.org/t/allow-sub-domains-from-blocked-domain-to-onebox/268737)._
