# CSP with Nginx proxy

**URL:** https://discuss.elastic.co/t/csp-with-nginx-proxy/190319
**Category:** Kibana
**Created:** [July 12, 2019, 11:32pm UTC](https://discuss.elastic.co/t/csp-with-nginx-proxy/190319 "2019-07-12T23:32:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pyjou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pyjou/32/50036_2.png) [@pyjou](https://discuss.elastic.co/u/pyjou)
#### Post date: [July 12, 2019, 11:32pm UTC](https://discuss.elastic.co/t/csp-with-nginx-proxy/190319/1 "2019-07-12T23:32:35Z")

</div>

When I want to get a maps on my browser. Kibana don't show the map and send this error message :  
`Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-...". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.`  
So I try to add CSP header in my Nginx config but it doesn't work.

Some ideas ?

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [July 18, 2019, 3:47pm UTC](https://discuss.elastic.co/t/csp-with-nginx-proxy/190319/2 "2019-07-18T15:47:43Z")

</div>

Hello,

It's a little hard to know for sure since the proxy setup will have more to do with a specific nginx configuration than Kibana. Having said that, perhaps this [discussion w/ links](https://stackoverflow.com/questions/33300111/how-to-override-content-security-policy-of-site-a-while-using-nginx-proxy-pass-o) might point you in the right direction?

Regards,  
Aaron

---

<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 15, 2019, 3:47pm UTC](https://discuss.elastic.co/t/csp-with-nginx-proxy/190319/3 "2019-08-15T15:47:53Z")

</div>

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