We have an application running on MarkLogic. The code sends a get request. When there is an error, the entire GET request, along with the credentials, is displayed in the error message. What is the best practice to avoid this? Does MarkLogic have a way to encrypt authentication details.
var response = xdmp.httpGet(
url,{"authentication": authentication}).toArray();
The variable authentication contains the username and password. How can I encrypt it?