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
PS: I didn't have any bitcoin.conf initially, so I create above one inside .bitcoin folder in home directory.