# Onebox on a self hosted invitation only discourse site

**URL:** <https://meta.discourse.org/t/onebox-on-a-self-hosted-invitation-only-discourse-site/126625>\
**Category:** Product Support\
**Created:** [8월 23, 2019, 9:03오전 UTC](https://meta.discourse.org/t/onebox-on-a-self-hosted-invitation-only-discourse-site/126625 "2019-08-23T09:03:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [8월 23, 2019, 2:01오후 UTC](https://meta.discourse.org/t/onebox-on-a-self-hosted-invitation-only-discourse-site/126625/4 "2019-08-23T14:01:59Z")

</div>

Thank you for the extra details.

> [@csmu](#):
>
> From the site one boxes works for many other sites … just not locally.
> 
> It I past a link form production into staging I get the same result as above.

If your production site is invite-only, then what you’re experiencing is the expected result.

The onebox gem cannot get the information from the production site because it’s set to invite-only and the content is not available unless you’re logged in. So if you try to add a link - a onebox - _to_ your production site, _on_ your staging site, then you’ll get this

[https://discourse.bd2l.com.au/t/ceiteach-plan-2019-08-23-0650/2220](https://discourse.bd2l.com.au/t/ceiteach-plan-2019-08-23-0650/2220)

Note that this ^ will directly take you to the login page of the production site.

If on the other hand you try to add a link _to_ your production site _on_ your production site, then it will not be oneboxed. and you’ll get this

[https://discourse.bd2l.com.au/t/ceiteach-plan-2019-08-23-0650/2220](https://discourse.bd2l.com.au/t/ceiteach-plan-2019-08-23-0650/2220)

this is very intentional and is actually the result of a recent change

[https://github.com/discourse/discourse/commit/b0e781e2d4fc7790102f1a4f3a9d514c4ebe7b26](https://github.com/discourse/discourse/commit/b0e781e2d4fc7790102f1a4f3a9d514c4ebe7b26)

but again, this will only happen if your site is set to invite-only or login-required.

---

_[View the full topic](https://meta.discourse.org/t/onebox-on-a-self-hosted-invitation-only-discourse-site/126625)._
