From c1eccdfe11008db4591b2b7c90b1a1ff7b89e186 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 3 Jul 2022 14:44:27 +0200 Subject: [PATCH] change CORS parameters depending on your allowed astroport domains --- .install/ipfs_alone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.install/ipfs_alone.sh b/.install/ipfs_alone.sh index 60ac522..2759362 100755 --- a/.install/ipfs_alone.sh +++ b/.install/ipfs_alone.sh @@ -90,7 +90,7 @@ ipfs config --json Experimental.Libp2pStreamMounting true ipfs config --json Experimental.P2pHttpProxy true ipfs config --json Swarm.ConnMgr.LowWater 0 ipfs config --json Swarm.ConnMgr.HighWater 0 -ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' +ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://astroport", "https://astroport.com", "https://qo-op.com", "https://tube.copylaradio.com" ]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]' ######### CLEAN DEFAULT BOOTSTRAP TO STAY INVISIBLE ###########