# Access-Control-Allow-Credentials Header

**URL:** <https://discuss.elastic.co/t/access-control-allow-credentials-header/217293>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [January 31, 2020, 4:06am UTC](https://discuss.elastic.co/t/access-control-allow-credentials-header/217293 "2020-01-31T04:06:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YanbangLiuUiPath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanbangliuuipath/32/60975_2.png) [@YanbangLiuUiPath](https://discuss.elastic.co/u/YanbangLiuUiPath)\
**Post date:** [January 31, 2020, 4:06am UTC](https://discuss.elastic.co/t/access-control-allow-credentials-header/217293/1 "2020-01-31T04:06:33Z")

</div>

Hi Community,

Is there a way to have Kibana return a response with header 'Access-Control-Allow-Credentials: true'?

I already had server.cors and server.cors.origin settings in kibana.yml

Thanks

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [January 31, 2020, 8:24am UTC](https://discuss.elastic.co/t/access-control-allow-credentials-header/217293/2 "2020-01-31T08:24:20Z")

</div>

Hi, did you try `server.customResponseHeaders`?

> **Default: `{}`** Header names and values to send on all responses to the client from the Kibana server.

> **[Configure Kibana | Kibana Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/settings.html)**

Sounds like you can use this to set `Access-Control-Allow-Credentials`

---

<div class="post-metadata">

**Author:** ![YanbangLiuUiPath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanbangliuuipath/32/60975_2.png) [@YanbangLiuUiPath](https://discuss.elastic.co/u/YanbangLiuUiPath)\
**Post date:** [January 31, 2020, 6:45pm UTC](https://discuss.elastic.co/t/access-control-allow-credentials-header/217293/3 "2020-01-31T18:45:28Z")

</div>

It worked! It's right under the cors.origin documentation but somehow I missed it.

Thank you very much!

---

<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:** [February 28, 2020, 6:45pm UTC](https://discuss.elastic.co/t/access-control-allow-credentials-header/217293/4 "2020-02-28T18:45:38Z")

</div>

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