Fix CORS issue

This commit is contained in:
IshaVenikar 2024-07-22 18:18:46 +05:30
parent 5206810eca
commit 12833bb840
2 changed files with 5 additions and 2 deletions

View File

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

View File

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