Allow requests from any origin
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m23s
Build / build (pull_request) Successful in 2m33s
E2E Tests / test-e2e (pull_request) Successful in 3m49s
Unit Tests / test-unit (pull_request) Successful in 2m11s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m28s
SDK Tests / sdk_tests (pull_request) Successful in 8m35s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m52s

This commit is contained in:
Adw8 2024-04-03 18:29:16 +05:30 committed by Prathamesh Musale
parent 456491a4f2
commit 63514605a6

View File

@ -71,6 +71,9 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
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
sed -i '' 's/enabled = false/enabled = true/g' $HOME/.laconicd/config/app.toml