# Embed Kibana Visualizations in HTML Page

**URL:** https://discuss.elastic.co/t/embed-kibana-visualizations-in-html-page/306040
**Category:** Kibana
**Created:** [May 31, 2022, 1:34pm UTC](https://discuss.elastic.co/t/embed-kibana-visualizations-in-html-page/306040 "2022-05-31T13:34:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)
#### Post date: [May 31, 2022, 1:34pm UTC](https://discuss.elastic.co/t/embed-kibana-visualizations-in-html-page/306040/1 "2022-05-31T13:34:16Z")

</div>

Similarly to [this question](https://discuss.elastic.co/t/embed-kibana-lens-visualizations-in-html-page/299707) we want to embed a vizualisation in an external web page. However, the solution given there, "use the iframe src from the dashboard" does not work. The dashboard does not use iframes and when we try to frame a vizualization the authentication is blocked.

This works great with Kibana when no authentication is required using the ?embed=true parameter:  
[http://mykibana:5601/app/kibana#/visualize/edit/605819e0-e0e2-11ec-be43-71d7f7eb4639?\_g=(refreshInterval:(pause:!t,value:0),time:(from:now-30d,mode:relative,to:now)](http://mykibana:5601/app/kibana#/visualize/edit/605819e0-e0e2-11ec-be43-71d7f7eb4639?_g=(refreshInterval:(pause:!t,value:0),time:(from:now%2D30d,mode:relative,to:now)))&\_a=(filters:!(),interval:auto,query:(language:kuery,query:'id%3A+1569'),sort:!(timestamp,desc))&&embed=true

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/8927ed87e81072b65e1bd060cd3a6edac669ed78.png)

However, if authentication is enabled, even if we are logged in to kibana, the iframe URL does not work:  
[https://mykibana/s/customer-experience-applications/app/visualize#/edit/e031c980-e0e3-11ec-be43-71d7f7eb4639?\_g=(refreshInterval:(pause:!t,value:0),time:(from:now-30d,mode:relative,to:now)](https://mykibana/s/customer-experience-applications/app/visualize#/edit/e031c980-e0e3-11ec-be43-71d7f7eb4639?_g=(refreshInterval:(pause:!t,value:0),time:(from:now%2D30d,mode:relative,to:now)))&\_a=(filters:!(),interval:auto,query:(language:kuery,query:'id%3A+1569'),sort:!(timestamp,desc))&&embed=true

The Console in Chrome shows a blocked request:  
POST [https://logservice.buhler-ltd.com/api/security/v1/saml](https://logservice.buhler-ltd.com/api/security/v1/saml) 401 (Unauthorized)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/2/026c8884f7f5231466756abf9a78a03fb3397116.png)

---

<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: [June 28, 2022, 1:34pm UTC](https://discuss.elastic.co/t/embed-kibana-visualizations-in-html-page/306040/2 "2022-06-28T13:34:18Z")

</div>

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