mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
api: fix outdated HTTPHeaders config documentation
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
@ -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
|
Instead, try either adding headers to the config, or passing them via
|
||||||
cli arguments:
|
cli arguments:
|
||||||
|
|
||||||
ipfs config API.HTTPHeaders 'Access-Control-Allow-Origin' '*'
|
ipfs config API.HTTPHeaders --json '{"Access-Control-Allow-Origin": ["*"]}'
|
||||||
ipfs daemon
|
ipfs daemon
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
ipfs daemon --api-http-header 'Access-Control-Allow-Origin: *'
|
|
||||||
`
|
`
|
||||||
|
|
||||||
// APIPath is the path at which the API is mounted.
|
// APIPath is the path at which the API is mounted.
|
||||||
|
Reference in New Issue
Block a user