I have deployed Apache Solr 6.6.1 with basic authentication by following their reference guide. At the end they have discussed how to use curl with security. For my case, I am using REST API to query SOLR. Due to Basic Authentication i am using this query. https://user:pswd@serverhost/solr/... in this way my user & paswd will expose. i want to know the safest method to use basic authetication with REST API that will not be exposed to external worl.