From 35635c46dcad99938f15e2e8171b5012a8bc89ab Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Sun, 15 Nov 2015 22:44:12 +0100 Subject: [PATCH] more cors docs --- ipfs_daemon_set_cors.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipfs_daemon_set_cors.sh b/ipfs_daemon_set_cors.sh index c69eb6d..2e9ec71 100755 --- a/ipfs_daemon_set_cors.sh +++ b/ipfs_daemon_set_cors.sh @@ -1,7 +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! +# NOTE: this change is PERMANENT until reversed! +# See https://github.com/ipfs/js-ipfs-api#cors for a temporary solution instead ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'