Kibana URL access header showing kbn-name

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

Can we have any update on this

@azasypkin can we please get some help here?

Thanks,
Bhavya

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)

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

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. 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.

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

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