How to login automatically with request header

This post gives you a very detailed reply: Kibana default basic auth

Hope it helps
Rashmi