# Share a dashboard to an external website without logging in

**URL:** <https://discuss.elastic.co/t/share-a-dashboard-to-an-external-website-without-logging-in/264739>\
**Category:** Kibana\
**Created:** [February 18, 2021, 5:19pm UTC](https://discuss.elastic.co/t/share-a-dashboard-to-an-external-website-without-logging-in/264739 "2021-02-18T17:19:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Pizarro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_pizarro/32/84133_2.png) [@Luis\_Pizarro](https://discuss.elastic.co/u/Luis_Pizarro)\
**Post date:** [February 18, 2021, 5:19pm UTC](https://discuss.elastic.co/t/share-a-dashboard-to-an-external-website-without-logging-in/264739/1 "2021-02-18T17:19:05Z")

</div>

I am trying to share a kibana dashboard through embed code but repeatedly it asks for access attached to it.

```auto
<!DOCTYPE HTML>

<html lang=es>

    <head>

        <title>Tutorial de HTML para dummies</title>

        <meta charset="UTF-8">

        <meta name="description" content="En este post...">

    </head>

    <body>

        <h1>Como crear una página HTML: Tutorial para dummies</h1>

        <iframe src="https://1c47feb872be484d95984822253e819f.eu-west-1.aws.found.io:9243/app/dashboards?auth_provider_hint=anonymous1#/view/f7500be0-6ae7-11eb-9961-c34079d797f0?&_a=(description:'In%20work',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),timeRestore:!f,title:'Dashboards%20of%20Elastic%20%5BMetrics%20of%20store%5D',viewMode:view)&_g=(filters:!(),query:(language:kuery,query:''),refreshInterval:(pause:!t,value:5000),time:(from:now-2y,to:now))" height="600" width="800"></iframe>

    </body>

</html>

```

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [February 18, 2021, 5:35pm UTC](https://discuss.elastic.co/t/share-a-dashboard-to-an-external-website-without-logging-in/264739/2 "2021-02-18T17:35:03Z")

</div>

Hi!

This is something that is frequently posted on the forums here:

> [@Authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/authenticating-to-iframe-embedded-kibana-dashboard/71129/7):
>
> Sorry for the delay, @rupaln and sorry for giving incomplete advice. I was able to get the Kibana server to respond with a cookie header by POSTing to /api/security/v1/login with a JSON request body of { "password": "\<YOURPASSWORD\>", "username": "\<YOURUSERNAME\>" } and the appropriate kbn-version: 5.1.1 header.

> [@Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/16):
>
> @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.

---

<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:** [March 18, 2021, 5:35pm UTC](https://discuss.elastic.co/t/share-a-dashboard-to-an-external-website-without-logging-in/264739/3 "2021-03-18T17:35:54Z")

</div>

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