From 657a18513d63cc3a8c1d3a51684ab088f886bdf8 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Wed, 18 Nov 2015 17:03:52 +0100 Subject: [PATCH] updated cors istructions --- ipfs_daemon_set_cors.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipfs_daemon_set_cors.sh b/ipfs_daemon_set_cors.sh index 2e9ec71..dc525cf 100755 --- a/ipfs_daemon_set_cors.sh +++ b/ipfs_daemon_set_cors.sh @@ -2,7 +2,11 @@ # This will make sure your ipfs node works with the app. # NOTE: this change is PERMANENT until reversed! -# See https://github.com/ipfs/js-ipfs-api#cors for a temporary solution instead + +# If you want a temporary solution, try running your daemon like this: +# API_ORIGIN="localhost:8080" ipfs daemon +# replace localhost:8080 with whatever domain:port you're connecting from :) +# Also see https://github.com/ipfs/js-ipfs-api#cors ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'