How to add Authentication Information into a Connection Request?

(Ong) #1

I have a dockerised container of Elasticsearch and it comes by default with X-Pack security. The application will connect to the dockerised Elasticsearch container using a Elasticsearch-ReactJS library called Searchkit.

How do I add authentication information for connection requests and searches to Elasticsearch?

I am getting an error from the browser: Failed to load resource: the server responded with a status of 401 (Unauthorized)

When I tested the application connection on a local copy of Elasticsearch without X-pack, there were no errors.

(Mark Walkom) #2

You'd probably need to consult the searchkit documentation.

What version of the Elastic Stack are you using?

(Ong) #3

I am using version 5.5.0

(system) #4

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