From e9720fec98567f9a34f14a082ace324e69631bee Mon Sep 17 00:00:00 2001 From: Thomas van Dam Date: Thu, 12 Dec 2024 11:25:21 +0100 Subject: [PATCH] chore: allow all CORS requests when running locally with plugin --- scripts/local_setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/local_setup.sh b/scripts/local_setup.sh index dc69e38a..ebcab8a1 100755 --- a/scripts/local_setup.sh +++ b/scripts/local_setup.sh @@ -57,6 +57,8 @@ $BIN config set client chain-id seda-1-local if [[ "$INDEXING_PLUGIN" = true ]]; then $BIN config set app streaming.abci.keys '["*"]' $BIN config set app streaming.abci.plugin '"abci"' + # Technically this is not required for the plugin, but we'll usually want it when we're running locally. + sed -i '' 's/cors_allowed_origins = \[\]/cors_allowed_origins = \["*"\]/' $HOME/.sedad/config/config.toml fi # initialize the chain