Allow requests from any origin (#37)
All checks were successful
Integration Tests / test-integration (push) Successful in 3m35s
Unit Tests / test-unit (push) Successful in 3m36s
E2E Tests / test-e2e (push) Successful in 5m15s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 9m6s
SDK Tests / sdk_tests (push) Successful in 10m12s
SDK Tests / sdk_tests_auctions (push) Successful in 14m18s

Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
Reviewed-on: cerc-io/laconic2d#37
Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
This commit is contained in:
Prathamesh Musale 2024-07-17 09:59:59 +00:00 committed by nabarun
parent 456491a4f2
commit b2be09e0e4

View File

@ -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