# Auto-authenticating to iframe-embedded Kibana dashboard

**URL:** https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091
**Category:** Kibana
**Created:** [April 1, 2016, 7:05pm UTC](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091 "2016-04-01T19:05:20Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![flexoid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flexoid/32/41996_2.png) [@flexoid](https://discuss.elastic.co/u/flexoid)
#### Post date: [March 14, 2019, 12:36pm UTC](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/16 "2019-03-14T12:36:10Z")

</div>

@tsullivan @Alex_Piggott @Francisca_Lima and others interested.

Looks like you should use

`proxy_set_header Host $proxy_host;`

instead of

`proxy_set_header Host $host;`

`$proxy_host` takes host value from `proxy_pass` directive, while `$host` will contain your `server_name`. And apparently, Kibana from Elastic Cloud requires an original host to determine target cluster ID.

Works for me without proxifying any additional `X-Found-Cluster` headers.

---

_[View the full topic](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091)._
