# Nginx is giving blank page on routing to Kibana

**URL:** https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695
**Category:** Kibana
**Created:** [March 2, 2020, 2:09pm UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695 "2020-03-02T14:09:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Natarajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natarajan/32/46943_2.png) [@Natarajan](https://discuss.elastic.co/u/Natarajan)
#### Post date: [March 2, 2020, 2:09pm UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695/1 "2020-03-02T14:09:29Z")

</div>

We have set up Kibana and Nginx. After making the changes in nginx to route to Kibana, we are getting following error and it is giving blank page.

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-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.  
Kibana version is : -6.8.6

```
location /bigdecisions/kibana {    
				proxy_redirect off;
                                proxy_buffering off;
                                proxy_set_header Host $host;
                                proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header Authorization "Basic ##################";
                                proxy_pass http://<Kiban_URL>:5601;
    }
```

---

<div class="post-metadata">

### Author: ![Natarajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natarajan/32/46943_2.png) [@Natarajan](https://discuss.elastic.co/u/Natarajan)
#### Post date: [March 4, 2020, 1:36pm UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695/2 "2020-03-04T13:36:34Z")

</div>

Fixed this issue

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [March 4, 2020, 8:22pm UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695/3 "2020-03-04T20:22:45Z")

</div>

Can you try adding a trailing slash? It looks like the Kibana's server redirect isn't being triggered. Browsers will do this for you but I'm guessing nginx isn't.

---

<div class="post-metadata">

### Author: ![Natarajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natarajan/32/46943_2.png) [@Natarajan](https://discuss.elastic.co/u/Natarajan)
#### Post date: [March 5, 2020, 6:44am UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695/4 "2020-03-05T06:44:44Z")

</div>

Thanks for the response. Now ngnix redirects to kiban as expected and basic authentication succeeded. I am able to see elastic indices in kibana. But I'm getting authentication error on seeing dashboard ,on creating index pattern. I have validated we are able to connect ES from nginx. Is there anything I need to do from nginx? like set-cookie?  
I am able to see kibana without any issues when accessing kibana directly (Without proxy) . But getting this error when using proxy (ngnix) to access kibana.

---

<div class="post-metadata">

### Author: ![Natarajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natarajan/32/46943_2.png) [@Natarajan](https://discuss.elastic.co/u/Natarajan)
#### Post date: [March 6, 2020, 8:40am UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695/5 "2020-03-06T08:40:42Z")

</div>

I fixed by updating server.basePath in kibana.yml .

---

<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: [April 3, 2020, 8:40am UTC](https://discuss.elastic.co/t/nginx-is-giving-blank-page-on-routing-to-kibana/221695/6 "2020-04-03T08:40:58Z")

</div>

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