# Problem in Embedding iframe

**URL:** <https://discuss.elastic.co/t/problem-in-embedding-iframe/348116>\
**Category:** Kibana\
**Created:** [November 28, 2023, 9:33am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116 "2023-11-28T09:33:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saksham\_Kawatra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saksham_kawatra/32/125492_2.png) [@Saksham\_Kawatra](https://discuss.elastic.co/u/Saksham_Kawatra)\
**Post date:** [November 28, 2023, 9:33am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116/1 "2023-11-28T09:33:41Z")

</div>

Hey everyone.  
I have been encountering a problem while trying to embed iframe of my dashboard into my application.  
Whenever i try to add credentials on the login page and press enter, the login page appears again, and this repeats.  
On the other hand, when i use the same url in incognito mode, a pop up occurs which guides to open in new window and then it gets logged in after entering the credentials.  
When i was trying to find a solution for this, i came across a blog that instructed to add a command in kibana.yml which was _xpack.security.sameSiteCookies: "None"_, when i set this, my page says that this connection is not secure.  
I don't know what to do now.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [November 28, 2023, 10:02am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116/2 "2023-11-28T10:02:48Z")

</div>

Hi @Saksham_Kawatra,

Can you share your iframe configuration and relevant kibana security settings?

It could be a couple of things including configuration or a browser issue, so I would recommend checking if either of the below fixes remediate your issue:

1. [Kibana login loop while use iframe](https://discuss.elastic.co/t/kibana-login-loop-while-use-iframe/296542)
2. [Kibana stuck in login loop - #9 by ayushr](https://discuss.elastic.co/t/kibana-stuck-in-login-loop/246101/9)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![Saksham\_Kawatra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saksham_kawatra/32/125492_2.png) [@Saksham\_Kawatra](https://discuss.elastic.co/u/Saksham_Kawatra)\
**Post date:** [November 28, 2023, 10:30am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116/3 "2023-11-28T10:30:03Z")

</div>

Hi @carly.richmond  
Thanks for replying to my problem.

My security settings in kibana.yml includes the following :

xpack.security.secureCookies: true  
xpack.security.sameSiteCookies: "None"

and for the iframe, i had copied it directly from kibana at the time of creating it. Can you please tell me what type of iframe configuration are you asking for?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [November 29, 2023, 11:23am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116/4 "2023-11-29T11:23:56Z")

</div>

Hi @Saksham_Kawatra,

Thanks for confirming. Have you changed the iframe link at all?

Do you have any authentication settings configured, such as [anonymous authentication](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#anonymous-authentication)?

---

<div class="post-metadata">

**Author:** ![Saksham\_Kawatra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saksham_kawatra/32/125492_2.png) [@Saksham\_Kawatra](https://discuss.elastic.co/u/Saksham_Kawatra)\
**Post date:** [November 30, 2023, 5:09am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116/5 "2023-11-30T05:09:00Z")

</div>

No I have not changes the iframe link,  
and also no, right now there is no anonymous authentication.

---

<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:** [December 28, 2023, 5:09am UTC](https://discuss.elastic.co/t/problem-in-embedding-iframe/348116/6 "2023-12-28T05:09:41Z")

</div>

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