# Kibana 7.10: how can I pass a custom parameter/header in response.redirect

**URL:** <https://discuss.elastic.co/t/kibana-7-10-how-can-i-pass-a-custom-parameter-header-in-response-redirect/262139>\
**Category:** Kibana\
**Created:** [January 25, 2021, 4:26pm UTC](https://discuss.elastic.co/t/kibana-7-10-how-can-i-pass-a-custom-parameter-header-in-response-redirect/262139 "2021-01-25T16:26:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prathibha\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prathibha_y/32/95786_2.png) [@Prathibha\_Y](https://discuss.elastic.co/u/Prathibha_Y)\
**Post date:** [January 25, 2021, 4:26pm UTC](https://discuss.elastic.co/t/kibana-7-10-how-can-i-pass-a-custom-parameter-header-in-response-redirect/262139/1 "2021-01-25T16:26:03Z")

</div>

Hi,

```
 I am trying to use redirect method as below,

```

_**const urlToADashboard = core.http.basePath.prepend(`/app/dashboards#/list`);**_

_**response.redirected({ headers: { location: urlToADashboard,authorization:authorizParams } });**_

redirection to dashboard list happens but authorization:authorizParams gets missed out..as the kibanaresponse object does not have default authorisation header.

prior to new kibana platform we were passing the auth headers using request.headers.authorization in redirect call, where as now its using kibanaresponse and I could not find a way to pass auth headers, can someone please suggest how to do it?

Thanks  
Prathibha

---

<div class="post-metadata">

**Author:** ![shamzeer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shamzeer/32/71513_2.png) [@shamzeer](https://discuss.elastic.co/u/shamzeer)\
**Post date:** [January 26, 2021, 12:00am UTC](https://discuss.elastic.co/t/kibana-7-10-how-can-i-pass-a-custom-parameter-header-in-response-redirect/262139/2 "2021-01-26T00:00:45Z")

</div>

I am also looking for a similar solution.. needed a way to pass our own custom headers in the redirect logic to elasticsearch. It was possible earlier. Is this not support ed now?

---

<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 23, 2021, 12:01am UTC](https://discuss.elastic.co/t/kibana-7-10-how-can-i-pass-a-custom-parameter-header-in-response-redirect/262139/3 "2021-02-23T00:01:14Z")

</div>

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