Kibana route proxy

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

    server.route({
        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: https://github.com/elastic/kibana/issues/new

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