From 12833bb8402053e206b4dad04cec30c9cf5b8ffa Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Mon, 22 Jul 2024 18:18:46 +0530 Subject: [PATCH] Fix CORS issue --- .../config/fixturenet-laconicd/create-fixturenet.sh | 3 +++ stack-orchestrator/stacks/fixturenet-laconicd/README.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stack-orchestrator/config/fixturenet-laconicd/create-fixturenet.sh b/stack-orchestrator/config/fixturenet-laconicd/create-fixturenet.sh index d9de757..5e24c0f 100644 --- a/stack-orchestrator/config/fixturenet-laconicd/create-fixturenet.sh +++ b/stack-orchestrator/config/fixturenet-laconicd/create-fixturenet.sh @@ -89,6 +89,9 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then sed -i 's/prometheus = false/prometheus = true/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 + # Allocate genesis accounts (cosmos formatted addresses) laconicd genesis add-genesis-account $KEY 100000000000000000000000000photon --keyring-backend $KEYRING diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/README.md b/stack-orchestrator/stacks/fixturenet-laconicd/README.md index 356950d..ee898b7 100644 --- a/stack-orchestrator/stacks/fixturenet-laconicd/README.md +++ b/stack-orchestrator/stacks/fixturenet-laconicd/README.md @@ -34,9 +34,9 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso This should create the following docker images locally: * `cerc/laconic2d` - * `cerc/laconic2-registry-cli` + * `cerc/laconic-registry-cli` * `cerc/webapp-base` - * `cerc/laconic2-console-host` + * `cerc/laconic-console-host` ## Create a deployment