diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-01 18:38:29 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-01 18:38:29 +0800 |
commit | 720d978e356bba74160dbdd95b51bcb8087fb92e (patch) | |
tree | 27e56e9c426331c660331e4d0b8bf81b10ac95a4 /cmd/mist | |
parent | 4e8f8cfab701bb6c4ad2b8cf166d642f408ca398 (diff) | |
parent | 35d00e00c52ad7d7c13e53b598e61fc332052f7b (diff) | |
download | dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.gz dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.bz2 dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.lz dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.xz dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.tar.zst dexon-720d978e356bba74160dbdd95b51bcb8087fb92e.zip |
Merge pull request #589 from tgerring/corssetting
Configurable CORS domain
Diffstat (limited to 'cmd/mist')
-rw-r--r-- | cmd/mist/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/mist/main.go b/cmd/mist/main.go index fab651b22..6780cfb3a 100644 --- a/cmd/mist/main.go +++ b/cmd/mist/main.go @@ -47,12 +47,19 @@ var ( Usage: "absolute path to GUI assets directory", Value: common.DefaultAssetPath(), } + rpcCorsFlag = utils.RPCCORSDomainFlag ) func init() { + // Mist-specific default + if len(rpcCorsFlag.Value) == 0 { + rpcCorsFlag.Value = "http://localhost" + } + app.Action = run app.Flags = []cli.Flag{ assetPathFlag, + rpcCorsFlag, utils.BootnodesFlag, utils.DataDirFlag, |