cors config

This commit is contained in:
Roman Volosovskyi 2016-08-04 09:36:33 +03:00
parent 47b01ec3c2
commit 5c0b128d5e
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func MakeNode(inputDir string) *node.Node {
set.Bool("rpc", true, "enable rpc") set.Bool("rpc", true, "enable rpc")
set.String("rpcaddr", "localhost", "host for RPC") set.String("rpcaddr", "localhost", "host for RPC")
set.String("rpcport", "8545", "rpc port") set.String("rpcport", "8545", "rpc port")
set.String("rpccorsdomain", "*", "allow all domains")
set.String("verbosity", "3", "verbosity level") set.String("verbosity", "3", "verbosity level")
set.String("rpcapi", "db,eth,net,web3,shh,personal,admin", "rpc api(s)") set.String("rpcapi", "db,eth,net,web3,shh,personal,admin", "rpc api(s)")
set.String("datadir", datadir, "data directory for geth") set.String("datadir", datadir, "data directory for geth")