**Kibana version:7.13.1**
**Elasticsearch version:7.13.1**
**Server OS ver…sion:**
Using defualt kibana docker image dictated by the helm chart
https://github.com/elastic/helm-charts/tree/master/kibana
**Browser version: Firefox 89.0.2 (64-bit)**
**Browser OS version:Windows 10 Pro 19042.1052**
**Original install method (e.g. download page, yum, from source, etc.):**
https://github.com/elastic/helm-charts/tree/master/kibana
https://github.com/elastic/helm-charts/blob/master/elasticsearch
**Describe the bug:**
From within kibana ->Dev tools -> Console
When you do any command (such as 'GET /_health') it returns a '500 internal error'. When doing this directly to elasticsearch, it works as intended.
**Steps to reproduce:**
1. Go into kibana
2. Dev Tools -> Console
3. GET /_health
**Expected behavior:**
Returns health of the cluster
**Screenshots (if relevant):**
![image](https://user-images.githubusercontent.com/29199726/123817651-55d3cc00-d8c6-11eb-8746-cdbbfbbf03cc.png)
**Errors in browser console (if relevant):**
**Provide logs and/or server output (if relevant):**
Here are the logs from kibana when the call is made:
```
{"type":"response","@timestamp":"2021-06-29T14:27:23+00:00","tags":[],"pid":951,"method":"get","statusCode":200,"req":{"url":"/api/console/es_config","method":"get","headers":{"host":"kibana-dev.test.com","x-request-id":"bdf76e6f7080de308b2510e5f1b715a6","x-real-ip":"10.x.x.x","x-forwarded-for":"10.x.x.x","x-forwarded-proto":"https","x-forwarded-host":"kibana-dev.test.com","x-forwarded-port":"443","x-scheme":"https","x-original-forwarded-for":"10.x.x.x","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://kibana-dev.test.com/app/dev_tools","content-type":"application/json","kbn-version":"7.13.1"},"remoteAddress":"10.42.64.0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","referer":"https://kibana-dev.test.com/app/dev_tools"},"res":{"statusCode":200,"responseTime":2,"contentLength":51},"message":"GET /api/console/es_config 200 2ms - 51.0B"}
{"type":"log","@timestamp":"2021-06-29T14:27:23+00:00","tags":["error","http"],"pid":951,"message":"Error: expected 'location' header to be set
at HapiResponseAdapter.toRedirect (/usr/share/kibana/src/core/server/http/router/response_adapter.js:104:13)
at HapiResponseAdapter.toHapiResponse (/usr/share/kibana/src/core/server/http/router/response_adapter.js:86:19)
at HapiResponseAdapter.handle (/usr/share/kibana/src/core/server/http/router/response_adapter.js:73:17)
at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:164:34)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at handler (/usr/share/kibana/src/core/server/http/router/router.js:124:50)
at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:370:32)
at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:279:9)"}
{"type":"log","@timestamp":"2021-06-29T14:27:23+00:00","tags":["error","http"],"pid":951,"message":"Error: expected 'location' header to be set
at HapiResponseAdapter.toRedirect (/usr/share/kibana/src/core/server/http/router/response_adapter.js:104:13)
at HapiResponseAdapter.toHapiResponse (/usr/share/kibana/src/core/server/http/router/response_adapter.js:86:19)
at HapiResponseAdapter.handle (/usr/share/kibana/src/core/server/http/router/response_adapter.js:73:17)
at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:164:34)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at handler (/usr/share/kibana/src/core/server/http/router/router.js:124:50)
at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:370:32)
at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:279:9)"}
{"type":"error","@timestamp":"2021-06-29T14:27:23+00:00","tags":[],"pid":951,"level":"error","error":{"message":"Internal Server Error","name":"Error","stack":"Error: Internal Server Error
at HapiResponseAdapter.toInternalError (/usr/share/kibana/src/core/server/http/router/response_adapter.js:61:19)
at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:177:34)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at handler (/usr/share/kibana/src/core/server/http/router/router.js:124:50)
at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:370:32)
at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:279:9)"},"url":"http://kibana-dev.test.com/api/console/proxy?path=_aliases&method=GET","message":"Internal Server Error"}
{"type":"response","@timestamp":"2021-06-29T14:27:23+00:00","tags":["access:console"],"pid":951,"method":"post","statusCode":500,"req":{"url":"/api/console/proxy?path=_aliases&method=GET","method":"post","headers":{"host":"kibana-dev.test.com","x-request-id":"7e4bb92469ccb73ea9f4307489395f04","x-real-ip":"10.x.x.x","x-forwarded-for":"10.x.x.x","x-forwarded-proto":"https","x-forwarded-host":"kibana-dev.test.com","x-forwarded-port":"443","x-scheme":"https","x-original-forwarded-for":"10.x.x.x","content-length":"0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","accept":"text/plain, */*; q=0.01","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://kibana-dev.test.com/app/dev_tools","kbn-xsrf":"kibana","origin":"https://kibana-dev.test.com"},"remoteAddress":"10.42.17.0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","referer":"https://kibana-dev.test.com/app/dev_tools"},"res":{"statusCode":500,"responseTime":144,"contentLength":97},"message":"POST /api/console/proxy?path=_aliases&method=GET 500 144ms - 97.0B"}
{"type":"error","@timestamp":"2021-06-29T14:27:23+00:00","tags":[],"pid":951,"level":"error","error":{"message":"Internal Server Error","name":"Error","stack":"Error: Internal Server Error
at HapiResponseAdapter.toInternalError (/usr/share/kibana/src/core/server/http/router/response_adapter.js:61:19)
at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:177:34)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at handler (/usr/share/kibana/src/core/server/http/router/router.js:124:50)
at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)
at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)
at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:370:32)
at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:279:9)"},"url":"http://kibana-dev.test.com/api/console/proxy?path=_template&method=GET","message":"Internal Server Error"}
{"type":"response","@timestamp":"2021-06-29T14:27:23+00:00","tags":["access:console"],"pid":951,"method":"post","statusCode":500,"req":{"url":"/api/console/proxy?path=_template&method=GET","method":"post","headers":{"host":"kibana-dev.test.com","x-request-id":"8d5cc2e5a4ec7b088e43686316f6ccc3","x-real-ip":"10.x.x.x","x-forwarded-for":"10.x.x.x","x-forwarded-proto":"https","x-forwarded-host":"kibana-dev.test.com","x-forwarded-port":"443","x-scheme":"https","x-original-forwarded-for":"10.x.x.x","content-length":"0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","accept":"text/plain, */*; q=0.01","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br","referer":"https://kibana-dev.test.com/app/dev_tools","kbn-xsrf":"kibana","origin":"https://kibana-dev.test.com"},"remoteAddress":"10.42.19.0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","referer":"https://kibana-dev.test.com/app/dev_tools"},"res":{"statusCode":500,"responseTime":137,"contentLength":97},"message":"POST /api/console/proxy?path=_template&method=GET 500 137ms - 97.0B"}
```
**Any additional context:**
Kibana and elasticsearch are both in kubernetes and can talk to each other fine. It's just this particular feature with kibana giving issues