# Google Docs onebox not displayed

**URL:** <https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057>\
**Category:** Site discussion\
**Tags:** discourse, onebox, bug\
**Created:** [March 17, 2016, 1:16pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057 "2016-03-17T13:16:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirlu](https://community.metabrainz.org/user_avatar/community.metabrainz.org/chirlu/32/45_2.png) [@chirlu](https://community.metabrainz.org/u/chirlu)\
**Post date:** [March 17, 2016, 1:16pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/1 "2016-03-17T13:16:22Z")

</div>

In [this post](https://community.metabrainz.org/t/allowing-users-to-run-jobs-on-their-local-machines-and-then-uploading-the-results-on-the-server/91/8), there is a link to a Google Docs document (on a line by itself, so oneboxed). However, the onebox isn’t visible for me (Firefox 45) – there is only a piece of white space. I had to look at the source for the post to see what the intention was.

Can other users see the box? If so, in which browser(s)?

---

<div class="post-metadata">

**Author:** ![reosarevok](https://community.metabrainz.org/user_avatar/community.metabrainz.org/reosarevok/32/69228_2.png) [@reosarevok](https://community.metabrainz.org/u/reosarevok)\
**Post date:** [March 17, 2016, 1:21pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/2 "2016-03-17T13:21:47Z")

</div>

Can’t see it either in Chromium 48.0.2564.116

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [March 17, 2016, 1:26pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/3 "2016-03-17T13:26:47Z")

</div>

Ah, I already wondered what’s wrong with this post. Looks like the request URL does not want to be framed, it’s sending an `X-Frame-Options: SAMEORIGIN` header, leading to:

```nohighlight
Load denied by X-Frame-Options: https://docs.google.com/document/d/1Qi-5hDrjvhSBikI8Qku8tors6Z8sP43icDp-pUvDEjQ/pub?embedded=true does not permit cross-origin framing.

```

---

<div class="post-metadata">

**Author:** ![Freso](https://community.metabrainz.org/user_avatar/community.metabrainz.org/freso/32/25_2.png) [@Freso](https://community.metabrainz.org/u/Freso)\
**Post date:** [March 17, 2016, 1:34pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/4 "2016-03-17T13:34:52Z")

</div>

That’s a shame. I don’t really have a clue as to whether there’s anything we can do to fix this. ☹

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [March 17, 2016, 1:47pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/6 "2016-03-17T13:47:47Z")

</div>

Ok, I found something about it here:

> **[Google docs onebox gem requires a "published" document](https://meta.discourse.org/t/google-docs-onebox-gem-requires-a-published-document/33649)**
>
> Embedding a Google document via the onebox gem seems to be broken. All that displays is a blank placeholder. When trying new posts, I get the following error in the console: Load denied by X-Frame-Options: (Google Doc URL) does not permit...

So the trick is that the document needs to be published (inside Google Docs File -\> Publish to the web) and not just shared. I did not even know about that feature before. Unfortunately the onebox also triggers for just shared links ☹ Also it does not provide any link to the published document 😕

Example:

[https://docs.google.com/document/d/1kq3ci5beAUwlmWZUKuuVYCPIxcFEuPwKJk8M9XMvGT8/pub](https://docs.google.com/document/d/1kq3ci5beAUwlmWZUKuuVYCPIxcFEuPwKJk8M9XMvGT8/pub)

---

<div class="post-metadata">

**Author:** ![Freso](https://community.metabrainz.org/user_avatar/community.metabrainz.org/freso/32/25_2.png) [@Freso](https://community.metabrainz.org/u/Freso)\
**Post date:** [March 17, 2016, 1:53pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/7 "2016-03-17T13:53:01Z")

</div>

Any chance you want to pursue this on meta.discourse? 😇

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [March 17, 2016, 1:54pm UTC](https://community.metabrainz.org/t/google-docs-onebox-not-displayed/7057/8 "2016-03-17T13:54:54Z")

</div>

> [@Freso](#):
>
> Any chance you want to pursue this on meta.discourse? 😇

Already typing… 😃
