Elasticsearch error :missing authentication credentials for REST request

I installed version 8.11.1 of elasticsearch in the domain server. After the local configuration is complete, the web page can be opened normally.

But when you try to open a web page in an external browser, you are prompted with missing authentication credentials for REST request. As shown in the figure

Why does this lead to a situation like this and how to fix it, thank you

Elasticsearch is not intended to be used from a web browser. You can but it won't be very useful.

I suspect the issue here is that you want to install & use Kibana on top of Elasticsearch. Kibana will give you tools to use and manage Elasticsearch including a real login page where you can enter credentials.