From b2be09e0e40bd39716ceffc0bd995b81e4308b07 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 17 Jul 2024 09:59:59 +0000 Subject: [PATCH] Allow requests from any origin (#37) Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675) Co-authored-by: Adw8 Reviewed-on: https://git.vdb.to/cerc-io/laconic2d/pulls/37 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- scripts/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/init.sh b/scripts/init.sh index a2d6da180..190e3fd36 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -70,6 +70,9 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then else sed -i 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml fi + + # Run this to allow requests from any origin + sed -i 's/cors_allowed_origins.*$/cors_allowed_origins = ["*"]/' $HOME/.laconicd/config/config.toml # Enable telemetry (prometheus metrics: http://localhost:1317/metrics?format=prometheus) if [[ "$OSTYPE" == "darwin"* ]]; then