Open up CORS in simapp tendermint config

This commit is contained in:
Simon Warta 2020-08-18 14:57:36 +02:00
parent e8443f44f9
commit 6e69769950
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ function inline_jq() {
# Custom settings in config.toml
sed -i "" \
-e 's/^cors_allowed_origins.*$/cors_allowed_origins = ["*"]/' \
-e 's/^timeout_propose =.*$/timeout_propose = "300ms"/' \
-e 's/^timeout_propose_delta =.*$/timeout_propose_delta = "100ms"/' \
-e 's/^timeout_prevote =.*$/timeout_prevote = "300ms"/' \

View File

@ -86,7 +86,7 @@ laddr = "tcp://127.0.0.1:26657"
# A list of origins a cross-domain request can be executed from
# Default value '[]' disables cors support
# Use '["*"]' to allow any origin
cors_allowed_origins = []
cors_allowed_origins = ["*"]
# A list of methods the client is allowed to use with cross-domain requests
cors_allowed_methods = ["HEAD", "GET", "POST", ]