From d4fcc89d9fa7c5bc474edb030992bafc972418f6 Mon Sep 17 00:00:00 2001 From: gmega Date: Fri, 4 Oct 2024 20:05:27 -0300 Subject: [PATCH] add permissive CORS (for UI) and longer default TTL --- scripts/run_client.sh | 2 ++ scripts/windows/run-client.bat | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/run_client.sh b/scripts/run_client.sh index ac38279..36e2b20 100755 --- a/scripts/run_client.sh +++ b/scripts/run_client.sh @@ -52,6 +52,8 @@ chmod 0700 ${DATA_DIR} --disc-port=8090 \ --listen-addrs=/ip4/0.0.0.0/tcp/8070 \ --bootstrap-node=${BOOTSPR} \ + --api-cors-origin="*" \ + --block-ttl=30d \ persistence \ --eth-private-key=eth.key \ --eth-provider=https://rpc.testnet.codex.storage diff --git a/scripts/windows/run-client.bat b/scripts/windows/run-client.bat index 16ceeb6..df31a90 100644 --- a/scripts/windows/run-client.bat +++ b/scripts/windows/run-client.bat @@ -60,6 +60,8 @@ codex-%VERSION%-%OS%-%ARCH%.exe ^ --api-port=8080 ^ --disc-port=8090 ^ --listen-addrs=/ip4/0.0.0.0/tcp/8070 ^ + --api-cors-origin="*" ^ + --block-ttl=30d ^ --bootstrap-node=%BOOTSPR% ^ persistence ^ --eth-private-key=eth.key ^