# Problem login dashboards after copying the iframe address in the html

**URL:** <https://discuss.elastic.co/t/problem-login-dashboards-after-copying-the-iframe-address-in-the-html/258693>\
**Category:** Kibana\
**Created:** [December 15, 2020, 10:07am UTC](https://discuss.elastic.co/t/problem-login-dashboards-after-copying-the-iframe-address-in-the-html/258693 "2020-12-15T10:07:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarahabbasi](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@Sarahabbasi](https://discuss.elastic.co/u/Sarahabbasi)\
**Post date:** [December 15, 2020, 10:07am UTC](https://discuss.elastic.co/t/problem-login-dashboards-after-copying-the-iframe-address-in-the-html/258693/1 "2020-12-15T10:07:44Z")

</div>

Hello Masters :  
I will copy the iframe in the HTML tags on a html page, but Elastic login page not working  
and i got this error in browser console :

> Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...')  
> is required to enable inline execution.  
> my html code:  
> `<iframe class="responsive-iframe" src="http://localhost/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))" style="border:none;" title="Iframe Example"></iframe>`

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [December 17, 2020, 11:29am UTC](https://discuss.elastic.co/t/problem-login-dashboards-after-copying-the-iframe-address-in-the-html/258693/2 "2020-12-17T11:29:52Z")

</div>

> Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...')  
> is required to enable inline execution.

It shouldn't affect the runtime. There is the following message in the browser console: `bootstrap.js:43 ^ A single error about an inline script not firing due to content security policy is expected!`

> but Elastic login page not working

What exactly doesn't work? Is the page not rendered? Kibana doesn't redirect you to another page after the login form is submitted?  
Do you embed Kibana in an iframe on another host? If so, have you configured [xpack.security.sameSiteCookies: None](https://www.elastic.co/guide/en/kibana/current/security-settings-kb.html)?

---

<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:** [January 14, 2021, 11:30am UTC](https://discuss.elastic.co/t/problem-login-dashboards-after-copying-the-iframe-address-in-the-html/258693/3 "2021-01-14T11:30:01Z")

</div>

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