# How to Auto Login Kibana Dashboard which embedded in Iframe

**URL:** <https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/236157>\
**Category:** Kibana\
**Created:** [June 8, 2020, 10:40am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/236157 "2020-06-08T10:40:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![2manoj1](https://avatars.discourse-cdn.com/v4/letter/2/c0e974/32.png) [@2manoj1](https://discuss.elastic.co/u/2manoj1)\
**Post date:** [June 8, 2020, 10:40am UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/236157/1 "2020-06-08T10:40:22Z")

</div>

We are using Angular 8 and Kibana 7.7. Need to auto login Kibana dashboard which is embedded in Iframe.

Tried to login (from our frontend which running in Angular8) via API POST "/internal/security/login" with username and password but cors error coming. made changes kibana.yml and elasticsearch.yml for cors.

Without Reverse proxy any other solution for auto login in Kibana Iframe dashboard?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 11, 2020, 2:42pm UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/236157/2 "2020-06-11T14:42:12Z")

</div>

Anonymous iframe access requires a reverse proxy setup. You can find an example of nginx configuration at [Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091)

Here is an open issue [https://github.com/elastic/kibana/issues/18331](https://github.com/elastic/kibana/issues/18331) that you can track for supporting anonymous iframe access without a reverse proxy.

---

<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:** [July 9, 2020, 2:42pm UTC](https://discuss.elastic.co/t/how-to-auto-login-kibana-dashboard-which-embedded-in-iframe/236157/3 "2020-07-09T14:42:13Z")

</div>

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