diff --git a/ipfs_daemon_set_cors.sh b/ipfs_daemon_set_cors.sh index 03ebf24..c69eb6d 100755 --- a/ipfs_daemon_set_cors.sh +++ b/ipfs_daemon_set_cors.sh @@ -1,5 +1,8 @@ #!/bin/bash +# This will make sure your ipfs node works with the app. +# Note that it's not safe to do if your node is accessible from the internet or your LAN. Be careful! + ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'