I am using
node-bitcoin-rpc to do some api calls to bitcoind, but I am getting 401 error. I know this simply means unauthorized, but I have no authorization enable in my config file.
Howerver I can query bitcoin client using
vitcoin-cli --regtest listaccounts, I get the results.
My bitcoin.conf file is pretty simple
rpcport=8332 rpcconnect=127.0.0.1 regtest=1 debug=rpc
PS: I didn't have any bitcoin.conf initially, so I create above one inside .bitcoin folder in home directory.