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).
My question is that is there some sort of configuration in kibana that prevents custom headers from being accessiable to client or not.
Thanks.

Yes, there are some configuration in Elasticsearch that can prevent customer headers. It's called http.cors. Here is the values that you need to add
elasticsearch.ymlfor that:Also, you can check the current settings with the following API call.
An example output:
For security reasons, it is recommended to incorporate appropriate restrictions.