Setting domain name in session cookies

I'm working on a project where I need more granular control over the session cookies used by Kibana. I need to set a specific domain name for Kibana session cookies. But haven't found any official way to set domain name through kibana.yaml file.

I've tried configuring Nginx as a reverse proxy using the proxy_cookie_domain directive to replace the cookie domain. Unfortunately, this hasn't worked as intended.

I tried like:

"proxy_cookie_domain domain replacement;"

Any guidance on this, how I can set the domain name in session cookie?

I need one more clarificatin about cookie behavior of kibana (elastic stack) between a main domain (example(dot)com) and a subdomain (server1(dot)example()dot com). Will cookies set on example(dot)com automatically be sent to requests on server1(dot)example(dot)com?

Are there official documentation this, like the default behviour of the cookies set by elastic stack (Kibana)?

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