# Kibana Embedded Dashboard

**URL:** <https://discuss.elastic.co/t/kibana-embedded-dashboard/370002>\
**Category:** Kibana\
**Created:** [November 4, 2024, 12:01pm UTC](https://discuss.elastic.co/t/kibana-embedded-dashboard/370002 "2024-11-04T12:01:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdulrahman\_chamma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdulrahman_chamma/32/137406_2.png) [@abdulrahman\_chamma](https://discuss.elastic.co/u/abdulrahman_chamma)\
**Post date:** [November 4, 2024, 12:01pm UTC](https://discuss.elastic.co/t/kibana-embedded-dashboard/370002/1 "2024-11-04T12:01:16Z")

</div>

I'm trying to embed my kibana dashboard in a simple HTML page, i'm getting the error 401 on the following link "localhost:5601/internal/security/user\_profile?dataPath=avatar%2CuserSettings"  
I tried to logon as anonymous it did not work, my kibana YML is in below picture

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/15cefbe0e67b9e893a13844836d0127050816b65.png)

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [November 4, 2024, 3:30pm UTC](https://discuss.elastic.co/t/kibana-embedded-dashboard/370002/2 "2024-11-04T15:30:41Z")

</div>

Hi @abdulrahman_chamma,

Welcome! Can you confirm which version of Kibana you are trying to embed with, and whether you are using an iframe to embed?

I would recommend [following this guide](https://www.elastic.co/blog/how-to-embed-kibana-dashboards), but a 401 error is down to the action not being authorized. I would check:

1. Are you including the correct `auth_provider_hint` in your iframe URL?
2. Have you created the user with the correct credentials and permissions that match your `kibana.yml` config?
3. Have you configured the `sameSiteCookies` option?

Can you check those things and let us know if you're still facing an issue?

Hope that helps!

---

<div class="post-metadata">

**Author:** ![abdulrahman\_chamma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdulrahman_chamma/32/137406_2.png) [@abdulrahman\_chamma](https://discuss.elastic.co/u/abdulrahman_chamma)\
**Post date:** [November 6, 2024, 10:50am UTC](https://discuss.elastic.co/t/kibana-embedded-dashboard/370002/3 "2024-11-06T10:50:02Z")

</div>

Hi Carly,

Thanks for your support setting the sameSiteCookies and following the provided guide worked perfectly
