# Kibana, reverseproxy nginx and CORS enabled

**URL:** <https://discuss.elastic.co/t/kibana-reverseproxy-nginx-and-cors-enabled/55525>\
**Category:** Kibana\
**Created:** [July 14, 2016, 1:07pm UTC](https://discuss.elastic.co/t/kibana-reverseproxy-nginx-and-cors-enabled/55525 "2016-07-14T13:07:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danito](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@danito](https://discuss.elastic.co/u/danito)\
**Post date:** [July 14, 2016, 1:07pm UTC](https://discuss.elastic.co/t/kibana-reverseproxy-nginx-and-cors-enabled/55525/1 "2016-07-14T13:07:57Z")

</div>

Hi guys, all good?

I'm enabling CORS for my web frontend but seems that I'm missing something on Kibana  
as I observe the following error:

> Courier Fetch Error: unhandled courier request error: Authorization Exception in Chrome/Safari on Kibana 4.5.0

```
# Cors CONFIG
http.cors.allow-origin: /https?:\/\/localhost(:[0-9]+)?/
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length
http.jsonp.enable: true

```

Any clues?  
Thanks!

---

<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:** [July 14, 2016, 3:52pm UTC](https://discuss.elastic.co/t/kibana-reverseproxy-nginx-and-cors-enabled/55525/2 "2016-07-14T15:52:38Z")

</div>

Kibana passes a header called `kbn-version` for xsrf protection. Can you try adding that?

Details at [https://github.com/elastic/kibana/pull/5587](https://github.com/elastic/kibana/pull/5587)

---

<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 6, 2017, 1:46pm UTC](https://discuss.elastic.co/t/kibana-reverseproxy-nginx-and-cors-enabled/55525/3 "2017-07-06T13:46:44Z")

</div>


