# Content-Security-Policy for embedded kibana dashboards

**URL:** <https://discuss.elastic.co/t/content-security-policy-for-embedded-kibana-dashboards/305466>\
**Category:** Kibana\
**Created:** [May 24, 2022, 7:54am UTC](https://discuss.elastic.co/t/content-security-policy-for-embedded-kibana-dashboards/305466 "2022-05-24T07:54:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![parosio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parosio/32/27367_2.png) [@parosio](https://discuss.elastic.co/u/parosio)\
**Post date:** [May 24, 2022, 7:54am UTC](https://discuss.elastic.co/t/content-security-policy-for-embedded-kibana-dashboards/305466/1 "2022-05-24T07:54:07Z")

</div>

I'm having an application with kibana dashboards embedded in iframe. The application is proxied by Nginx, with an additional Apache front-end.  
My goal is to come up with a CSP without unsafe-hashes, unsafe-inline, unsafe-eval, ...

I'm still using 6.7, and in [this thread](https://discuss.elastic.co/t/is-unsafe-eval-required-for-script-src-in-the-content-security-policy-for-kibana-6-7-1/226298) @jportner points out that unsafe-eval is required for that version.

I tried to follow the related issues, but couldn't find an answer to this question: what is the minimum version that allows kibana to work properly without the need of any unsafe-\* source in CSP?

Thank you in advance,  
Paolo Arosio

---

<div class="post-metadata">

**Author:** ![parosio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parosio/32/27367_2.png) [@parosio](https://discuss.elastic.co/u/parosio)\
**Post date:** [June 17, 2022, 9:12am UTC](https://discuss.elastic.co/t/content-security-policy-for-embedded-kibana-dashboards/305466/2 "2022-06-17T09:12:29Z")

</div>

Apparently, it's been fixed with [https://github.com/elastic/kibana/pull/124484](https://github.com/elastic/kibana/pull/124484) ...

Any possibility it's backported to 7?

Regards,  
Paolo

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [June 17, 2022, 7:18pm UTC](https://discuss.elastic.co/t/content-security-policy-for-embedded-kibana-dashboards/305466/3 "2022-06-17T19:18:59Z")

</div>

Hello,

There won't be backports other than critical security fixes to previous releases in 7.x unfortunately.

Thanks,  
Bhavya

---

<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:** [July 15, 2022, 7:19pm UTC](https://discuss.elastic.co/t/content-security-policy-for-embedded-kibana-dashboards/305466/4 "2022-07-15T19:19:01Z")

</div>

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