Basic auth on Kibana using nginx

What happens is that always the kibana get's loaded but it's contents dosen't gets loaded and give 403 (forbidden) in browser console.

Things work fine without auth.