# Embed dashboard/visualization doesn't work if 3rd party cookie site data is blocked

**URL:** <https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460>\
**Category:** Kibana\
**Created:** [December 12, 2018, 1:50am UTC](https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460 "2018-12-12T01:50:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![liujinmarshall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liujinmarshall/32/38712_2.png) [@liujinmarshall](https://discuss.elastic.co/u/liujinmarshall)\
**Post date:** [December 12, 2018, 1:50am UTC](https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460/1 "2018-12-12T01:50:52Z")

</div>

We're deploying 6.3.2 with docker deployment. Some of our users reported that if they have [blocked third party cookie and site data](https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document), all the dashboard/visualization embedded in other HTML would show such error message:

Version: 6.3.2  
Build: 17307  
Error: Uncaught SecurityError: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document. (http://\*\*\*\*\*\*\*/bundles/commons.bundle.js:3)  
at window.onerror (http://\*\*\*\*\*\*\*\*\*o/bundles/commons.bundle.js:3:778155)

The only configs (via environment variables) are:

```
    - name: ELASTICSEARCH_URL
      value: http://xxxxxxxxxxxxx:9200
    - name: XPACK_MONITORING_UI_ENABLED
      value: "true"

```

And there's a [similar issue](https://discuss.elastic.co/t/kibana-iframe-share-not-work-for-chrome/87173) reported 18 months ago but doesn't get a response.

Is there any workaround?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [December 12, 2018, 9:04pm UTC](https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460/2 "2018-12-12T21:04:48Z")

</div>

> [@liujinmarshall](#):
>
> all the dashboard/visualization embedded in other HTML

Would you mind clarifying what you mean by this?

---

<div class="post-metadata">

**Author:** ![liujinmarshall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liujinmarshall/32/38712_2.png) [@liujinmarshall](https://discuss.elastic.co/u/liujinmarshall)\
**Post date:** [December 13, 2018, 12:10am UTC](https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460/3 "2018-12-13T00:10:34Z")

</div>

Hi,

I mean I embed a dashboard or a visualization from Kibana in other site within a \<iframe src="\<kibana\_dashboard\_iframe\_url\_from\_sharing"\>

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [December 13, 2018, 12:42am UTC](https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460/4 "2018-12-13T00:42:45Z")

</div>

Gotcha. The disable third-party cookies settings is restricting the access to read/write to sessionStorage as well when Kibana is hosted in an iframe. I'd recommend opening up an Issue in our [GitHub](https://github.com/elastic/kibana/issues/new/choose) to request the ability to use Kibana in this context, as there are quite a few things that rely on this ability currently, and there isn't a graceful fallback.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 10, 2019, 12:42am UTC](https://discuss.elastic.co/t/embed-dashboard-visualization-doesnt-work-if-3rd-party-cookie-site-data-is-blocked/160460/5 "2019-01-10T00:42:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
