Kibana 7.6.1 How to set request headers before plugins setup

I use iframe to embed the kibana page and i want to get the cookie info and set it to all request headers before sending any request.

Starting kibana, while the plugins setting up, some plugin sends request to the es server. I have to set the authorization info from cookie into the request headers.

Can someone help me pls

You can probably achieve this with a proxy between the Kibana and ES server, but it really depends on your setup.

Thanks. I have used the nginx reverse proxy to set the Kibana request headers which has solved my problem.