# Share canvas embed on website

**URL:** <https://discuss.elastic.co/t/share-canvas-embed-on-website/273006>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [May 14, 2021, 10:38am UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006 "2021-05-14T10:38:30Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 21, 2021, 4:35pm UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/21 "2021-05-21T16:35:45Z")

</div>

What I'm trying to tell you is to do it without the iframe first.

In other words you ought to just be able to take the full URL from the canvas work pad after you've done the anonymous login.

Copy that full URL, put in the anonymous hint in the proper place, paste it in the address bar of a new incognito browser and it should take you directly to the dashboard without the login page.

You need to get that to work first, if that does not work the iframe will never work.

The iframe just adds an extra complexity get this to work first.

---

<div class="post-metadata">

**Author:** ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)\
**Post date:** [May 21, 2021, 5:43pm UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/22 "2021-05-21T17:43:55Z")

</div>

If I take the URL that I'm using in iframe and put it an incognito tab, it works!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 21, 2021, 8:32pm UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/23 "2021-05-21T20:32:05Z")

</div>

Awesome! but unfortunately I'm not an iframe expert so perhaps what you should do is open a new thread with subject like "anonymous access works but iframe for canvas doesn't" perhaps you'll get some help from front end people.

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [May 24, 2021, 2:20pm UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/24 "2021-05-24T14:20:18Z")

</div>

Hmmm two things to try:

1. Make sure you're serving the html file that has the iframe. Just opening the html file from the local file system won't be enough
2. Check the iframe in other browsers. We've seen instances of browsers not handling iframes properly. The errors youre seeing seem similar to: [Embedded Kibana fails to authenticate with Safari · Issue #97200 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/97200)

---

<div class="post-metadata">

**Author:** ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)\
**Post date:** [May 25, 2021, 9:29am UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/25 "2021-05-25T09:29:32Z")

</div>

I'm using Chrome and same error also if the file is served...

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [May 27, 2021, 9:23pm UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/26 "2021-05-27T21:23:46Z")

</div>

Alright! I was able to run through all the steps on a Cloud instance running 7.11.2. I Was able to get this working no problem in Firefox but it looks like Chrome and Safari are a bit more strict with the iframe.

The fix is to set `xpack.security.sameSiteCookies: None` in the kibana.yml. Once I did that, I was able to access the Canvas workpad in Safari and Chrome. You can read more about this setting here: [Security settings in Kibana | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/security-settings-kb.html)

Also, I'm def going to update my original post with this info

Let me know if this works for you!

---

<div class="post-metadata">

**Author:** ![accateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/accateo/32/85332_2.png) [@accateo](https://discuss.elastic.co/u/accateo)\
**Post date:** [May 28, 2021, 7:32am UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/27 "2021-05-28T07:32:30Z")

</div>

Thank you!

Thanks for continuing to work on it!

---

<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:** [June 25, 2021, 7:33am UTC](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006/28 "2021-06-25T07:33:20Z")

</div>

Closed on June 25, 2021, 7:33am UTC

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

[Previous page](https://discuss.elastic.co/t/share-canvas-embed-on-website/273006.md?page=1)
