diff --git a/core/corehttp/commands.go b/core/corehttp/commands.go index 59d0d49b2f10..c4d6112ccb16 100644 --- a/core/corehttp/commands.go +++ b/core/corehttp/commands.go @@ -30,12 +30,8 @@ This functionality is deprecated, and will be removed in future versions. Instead, try either adding headers to the config, or passing them via cli arguments: - ipfs config API.HTTPHeaders 'Access-Control-Allow-Origin' '*' + ipfs config API.HTTPHeaders --json '{"Access-Control-Allow-Origin": ["*"]}' ipfs daemon - -or - - ipfs daemon --api-http-header 'Access-Control-Allow-Origin: *' ` // APIPath is the path at which the API is mounted.