# Kibana URL access header showing kbn-name

**URL:** <https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645>\
**Category:** Kibana\
**Created:** [July 23, 2024, 3:36pm UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645 "2024-07-23T15:36:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameerpatel37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameerpatel37/32/136244_2.png) [@sameerpatel37](https://discuss.elastic.co/u/sameerpatel37)\
**Post date:** [July 23, 2024, 3:36pm UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/1 "2024-07-23T15:36:39Z")

</div>

When opening kibana URL in browser so in a inspect page header section kbn-name show the hostname of the server in response header. So is there anyway to remove kbn-name header from kibana.

ES version = 7.17.0  
Kibana version = 7.17.22

---

<div class="post-metadata">

**Author:** ![sameerpatel37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameerpatel37/32/136244_2.png) [@sameerpatel37](https://discuss.elastic.co/u/sameerpatel37)\
**Post date:** [July 26, 2024, 8:01am UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/2 "2024-07-26T08:01:44Z")

</div>

Can we have any update on this

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [July 29, 2024, 9:04pm UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/3 "2024-07-29T21:04:52Z")

</div>

@azasypkin can we please get some help here?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [July 30, 2024, 9:41am UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/4 "2024-07-30T09:41:30Z")

</div>

> [@sameerpatel37](#):
>
> kbn-name

You have only two options:

- Strip this header with the reverse proxy, if you have one in front of Kibana
- Set `server.name` in `kibana.yml` to something else (this value is used for `kbn-name`)

---

<div class="post-metadata">

**Author:** ![sameerpatel37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameerpatel37/32/136244_2.png) [@sameerpatel37](https://discuss.elastic.co/u/sameerpatel37)\
**Post date:** [July 31, 2024, 9:12am UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/5 "2024-07-31T09:12:09Z")

</div>

I have already tried second solution which is to set the server.name in kibana.yml it seems not working and still expose the same hostname of the server in kbn-name

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 1, 2024, 11:10am UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/6 "2024-08-01T11:10:21Z")

</div>

That

> [@sameerpatel37](#):
>
> I have already tried second solution which is to set the server.name in kibana.yml it seems not working and still expose the same hostname of the server in kbn-name

That's weird, we even have a test that validates that `server.name` properly reflected in `kbn-name` HTTP response header: [kibana/packages/core/http/core-http-server-internal/src/lifecycle\_handlers.test.ts at 340887d44c399a53343bd527ce0f893518b5eba8 · elastic/kibana · GitHub](https://github.com/elastic/kibana/blob/340887d44c399a53343bd527ce0f893518b5eba8/packages/core/http/core-http-server-internal/src/lifecycle_handlers.test.ts#L395-L418). Can you try again maybe, and if you have multiple Kibana instances behind a load balancer, make sure you make this change for all Kibana instances.

---

<div class="post-metadata">

**Author:** ![sameerpatel37](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameerpatel37/32/136244_2.png) [@sameerpatel37](https://discuss.elastic.co/u/sameerpatel37)\
**Post date:** [August 2, 2024, 3:10pm UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/7 "2024-08-02T15:10:47Z")

</div>

Thanks for your replay and yes I have try again and now working properly. You can close this discussion

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 2, 2024, 3:23pm UTC](https://discuss.elastic.co/t/kibana-url-access-header-showing-kbn-name/363645/8 "2024-08-02T15:23:03Z")

</div>

Nice, thanks for getting back to us and confirming that it works now.
