I don't have enough reputation to put this in a comment, so I'm just going to write out a whole new answer in order to include Firefox, especially since it will allow Tor users to run off a local node).
As pointed out above, the --rpccorsdomain flag needs to be enabled. Each browser has a different extension that you'll need to put in, though.
First, switch network to another network and try to reconnect again
to ganache network(http://127.0.0.1:8545).
Make sure While you connecting to matamask using ganache, you have set up a connection like below :
Then you need to import accounts in metamask using private keys provided in ganache. You can see I already imported account that is