# Kibana URL Page : Refused to execute inline script because it violates the following Content Security Policy directive

**URL:** <https://discuss.elastic.co/t/kibana-url-page-refused-to-execute-inline-script-because-it-violates-the-following-content-security-policy-directive/363442>\
**Category:** Kibana\
**Created:** [July 19, 2024, 2:18pm UTC](https://discuss.elastic.co/t/kibana-url-page-refused-to-execute-inline-script-because-it-violates-the-following-content-security-policy-directive/363442 "2024-07-19T14:18:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ekta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ekta/32/55987_2.png) [@Ekta](https://discuss.elastic.co/u/Ekta)\
**Post date:** [July 19, 2024, 2:18pm UTC](https://discuss.elastic.co/t/kibana-url-page-refused-to-execute-inline-script-because-it-violates-the-following-content-security-policy-directive/363442/1 "2024-07-19T14:18:25Z")

</div>

Hi,

OS - 22.04  
Kibana - 7.17.22  
Error:

_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._

we are facing the above error in the console how to resolve it?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [July 22, 2024, 9:09am UTC](https://discuss.elastic.co/t/kibana-url-page-refused-to-execute-inline-script-because-it-violates-the-following-content-security-policy-directive/363442/2 "2024-07-22T09:09:10Z")

</div>

That's expected.  
When Kibana loads tests that the CSP (Content Security Policy) works correctly and the browser prints that message.
