diff --git a/ipfs_daemon_set_cors.sh b/ipfs_daemon_set_cors.sh new file mode 100755 index 0000000..03ebf24 --- /dev/null +++ b/ipfs_daemon_set_cors.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +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"]'