api: fix outdated HTTPHeaders config documentation
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
Lars Gierth committed
Sep 13, 2018 at 02:01 UTC
9b374c0041e07326da32fba1eaa7d6e92e3a8b9c
1 file changed
+1
-5
core/corehttp/commands.go
+1
-5
@@ -30,12 +30,8 @@ This functionality is deprecated, and will be removed in future versions.
30
Instead, try either adding headers to the config, or passing them via
31
cli arguments:
32
33
- ipfs config API.HTTPHeaders 'Access-Control-Allow-Origin' '*'
33
+ ipfs config API.HTTPHeaders --json '{"Access-Control-Allow-Origin": ["*"]}'
34
ipfs daemon
35
-
36
-or
37
-
38
- ipfs daemon --api-http-header 'Access-Control-Allow-Origin: *'
35
`
36
37
// APIPath is the path at which the API is mounted.