# Getting access to custom headers in kibana client

**URL:** <https://discuss.elastic.co/t/getting-access-to-custom-headers-in-kibana-client/349885>\
**Category:** Kibana\
**Created:** [December 23, 2023, 5:31pm UTC](https://discuss.elastic.co/t/getting-access-to-custom-headers-in-kibana-client/349885 "2023-12-23T17:31:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojtaba\_mosalman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojtaba_mosalman/32/130261_2.png) [@mojtaba\_mosalman](https://discuss.elastic.co/u/mojtaba_mosalman)\
**Post date:** [December 23, 2023, 5:31pm UTC](https://discuss.elastic.co/t/getting-access-to-custom-headers-in-kibana-client/349885/1 "2023-12-23T17:31:02Z")

</div>

Hi. I'm trying to get value of custom header set in response of our server in kibana react client using axios but it seems that it's not accessiable even though it's showing in browser console (Access-Control-Expose-Headers is also set).

 ![custom headers](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a1a5fd0a867e13fb94bbe1a378ff42e13f173b0c.png)

My question is that is there some sort of configuration in kibana that prevents custom headers being accessiable from client or not.

Thanks.

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [December 28, 2023, 9:47am UTC](https://discuss.elastic.co/t/getting-access-to-custom-headers-in-kibana-client/349885/2 "2023-12-28T09:47:21Z")

</div>

Hi @mojtaba_mosalman

I think you need to check your kibana.yml file to better understand how things are set up in your particular case.

There is a way to set custom headers to be send on all the Kibana server responses to the client with `server.customResponseHeaders` in kibana.yml. If it is the case and set properly, I can't think of any prevention mechanism on Kibana side.

Usually the problem comes when you try to send custom header, especially with CORS enabled for Elasticsearch. Then you have to make sure it is white-listed and etc.

You can read more about different Kibana server configuration [here](https://www.elastic.co/guide/en/kibana/current/settings.html)

Best, Dima

---

<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:** [January 25, 2024, 9:47am UTC](https://discuss.elastic.co/t/getting-access-to-custom-headers-in-kibana-client/349885/3 "2024-01-25T09:47:25Z")

</div>

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