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.