# Kibana Iframe Share Issue with Xframe and SameSite Cookie

**URL:** <https://discuss.elastic.co/t/kibana-iframe-share-issue-with-xframe-and-samesite-cookie/316824>\
**Category:** Kibana\
**Created:** [October 17, 2022, 8:09pm UTC](https://discuss.elastic.co/t/kibana-iframe-share-issue-with-xframe-and-samesite-cookie/316824 "2022-10-17T20:09:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [October 24, 2022, 12:49pm UTC](https://discuss.elastic.co/t/kibana-iframe-share-issue-with-xframe-and-samesite-cookie/316824/2 "2022-10-24T12:49:34Z")

</div>

The kibana yaml setting you are likely looking for is `xpack.security.sameSiteCookies`, more details [hele](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#embedded-content-authentication).

I've just added it to my Elastic Cloud deployment

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f9cdfe018b423cd8c8e54910727a7f7c39a43c83.png)

And I could deploy a minimal TypeScript React application that shows an iframe of a public dashboard I have at [https://ela.st/cumbre-vieja-eruption](https://ela.st/cumbre-vieja-eruption) on this location: [https://ihbdnn.csb.app/](https://ihbdnn.csb.app/)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c2f7c7b79c585a8544c9855f77b61e9d8c3a1f8.jpeg)

Mind that of course one thing is allowing your iframe to load and another for Kibana to display stuff for anonymous users, skip the login screen and so on. The whole [Anonymous authentication](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#anonymous-authentication) section in the Kibana docs provides comprehensive details on how this works.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-iframe-share-issue-with-xframe-and-samesite-cookie/316824)._
