Skip to content

Commit

Permalink
api: fix outdated HTTPHeaders config documentation
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
  • Loading branch information
Lars Gierth committed Sep 13, 2018
1 parent cf96372 commit 178296d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/corehttp/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 178296d

Please sign in to comment.