# Kibana Iframe avoid credentials

**URL:** <https://discuss.elastic.co/t/kibana-iframe-avoid-credentials/127663>\
**Category:** Kibana\
**Created:** [April 11, 2018, 3:19pm UTC](https://discuss.elastic.co/t/kibana-iframe-avoid-credentials/127663 "2018-04-11T15:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![He\_Pamela](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/he_pamela/32/42370_2.png) [@He\_Pamela](https://discuss.elastic.co/u/He_Pamela)\
**Post date:** [April 11, 2018, 3:19pm UTC](https://discuss.elastic.co/t/kibana-iframe-avoid-credentials/127663/1 "2018-04-11T15:19:04Z")

</div>

Hi, I want to embeed a kibana visualization on a page.  
I have readonlyrest as a security.  
and I use kibana and elastic search 5.6.0

when I embed on the page the visualization. The security ask me again for the user and password and I want to avoid this.

I heard about using CORS but I don't know how to use it.

how can I do this avoiding the login again?

---

<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:** [April 11, 2018, 6:33pm UTC](https://discuss.elastic.co/t/kibana-iframe-avoid-credentials/127663/2 "2018-04-11T18:33:59Z")

</div>

Hey @He_Pamela, if you put a reverse-proxy in front of Kibana (Nginx/Apache/etc.) you can provide the username and password via the Basic authorization headers. [Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/4) describes how to do this using NGINX and the same approach can be adapted if you need this to work with Apache.

---

<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:** [May 9, 2018, 6:33pm UTC](https://discuss.elastic.co/t/kibana-iframe-avoid-credentials/127663/3 "2018-05-09T18:33:59Z")

</div>

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