I just installed Parity (1.8.2) and made sure that it is fully synced, and am running into a couple of weird issues. (I installed Parity on a MacBook via Homebrew, config is all at default values)
- I can connect to my local node using MetaMask via http://localhost:8545, but cannot connect to it using MEW (downloaded/offline version). I keep getting this error:
Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.
I notice that I've a similar issue as described here: https://github.com/kvhnuke/etherwallet/issues/922, I don't see a Request Payload.
web3.eth.syncingall work and return values. However, when I install web3.js via npm, and then run the following:
var Web3 = require('web3');
var web3 = new Web3();
web3.eth.blockNumber all return undefined. However,
web3.eth.getBlockNumber().then(console.log); returns a value.
Thanks for the help!
Update: I've also tried all of the below commands (or combination of them):
parity --jsonrpc-cors '*' --jsonrpc-hosts all --jsonrpc-interface all
parity --jsonrpc-cors '*' --jsonrpc-hosts all --jsonrpc-interface all --rpccorsdomain 127.0.0.1
None of them work. MEW is throwing this error (in Console):
index.html:1 Failed to load http://127.0.0.1:8545/: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.