Kibana plugin needs to add "requestHeadersWhitelist" programmatically


In order to work correctly and as expected, my plugin (sometimes) needs to add a few extra headers to the white list so that they will be forwarded to Elasticsearch.

Is there a way to do this in the new platform? I previously managed to do this with something along the lines of:

server.plugins.elasticsearch.getCluster('admin').getRequestHeadersWhitelist = () => myNewList
server.plugins.elasticsearch.getCluster('data').getRequestHeadersWhitelist = () => myNewList

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