When you enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-minimal-setup.html in Elasticsearch, your clients (my website in this case) requires authentication to be setup. { "type": "security_exception", "reason": "missing authentication credentials for REST request [/index/_search]", "header": {"WWW-Authenticate": ["Basic realm=\"security\" charset=\"UTF-8\"", "ApiKey"]}
I found two ways to solve this, I could setup either one of these: basic authentication API Key
]], ], ]; To generate an API key, you will still require the username & password from basic authentication.