From 63514605a629696f2fda78ca734fe76878077b86 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Wed, 3 Apr 2024 18:29:16 +0530 Subject: [PATCH] Allow requests from any origin --- scripts/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/init.sh b/scripts/init.sh index a2d6da18..190e3fd3 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