there are places where post Basic Auth is needed in the project. It is no problem to configure authorization in postman, but it cannot be sent by using axios in the code. An error of 401 is reported, and relevant materials are consulted, but none of them take effect.
the following is a screenshot of chrome error
related codes
axios({
method: "post",
url: "http://172.16.20.12:8003/rpc",
auth: {
username: "admin",
password: "123456"
}
}).then(result=>{
console.log("11111");
});