# Script-src 'unsafe-eval' 'self' Error

**URL:** <https://discuss.elastic.co/t/script-src-unsafe-eval-self-error/278857>\
**Category:** Elasticsearch\
**Created:** [July 16, 2021, 5:27am UTC](https://discuss.elastic.co/t/script-src-unsafe-eval-self-error/278857 "2021-07-16T05:27:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iraviguggilam](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@iraviguggilam](https://discuss.elastic.co/u/iraviguggilam)\
**Post date:** [July 16, 2021, 5:27am UTC](https://discuss.elastic.co/t/script-src-unsafe-eval-self-error/278857/1 "2021-07-16T05:27:42Z")

</div>

I'm using elastic search URL in angular application through iframe and getting below 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."

---

<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:** [August 13, 2021, 5:28am UTC](https://discuss.elastic.co/t/script-src-unsafe-eval-self-error/278857/2 "2021-08-13T05:28:39Z")

</div>

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