Error: expected 'location' header to be set

It can be caused by clicking one of my search on Kibana screen. For example, running the GET / can cause the error.