Kibana route proxy

I used to have this code to specify proxy for request handler in the legacy Kibana plugin.

        path: '/api/myplugin/{path*}',
        method: ['GET', 'POST', 'DELETE'],
        handler: {
          proxy: {
            mapUri: request => {
              return { uri: `${baseUri}/${request.params.path || ''}` };

How can I do this with new Kibana router?

I think that was a feature of the Hapijs module, which developers no longer have direct access to:

I don't think it's likely that support will be added for this in core Kibana since there are better tools for proxying web requests out there. But you might want to add an enhancement request over at:

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