Fix cors-allowed-origins configuration for Tendermint 0.35

This commit is contained in:
Simon Warta 2022-06-14 16:33:32 +02:00
parent fe90dc30d5
commit 54cafc4a63

View File

@ -26,7 +26,11 @@ docker run --rm \
# make sure we allow cors origins, only possible by modifying the config file
# https://github.com/tendermint/tendermint/issues/3216
#
# Tendermint <= 0.34 uses underscores
"$gnused" -i -e 's/^cors_allowed_origins =.*$/cors_allowed_origins = ["*"]/' "${TMP_DIR}/config/config.toml"
# Tendermint 0.35 uses dashes
"$gnused" -i -e 's/^cors-allowed-origins =.*$/cors-allowed-origins = ["*"]/' "${TMP_DIR}/config/config.toml"
# must enable tx index for search and subscribe
docker run --rm \