1
0
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:
Lars Gierth
2018-09-13 02:01:17 +02:00
parent cf963724a7
commit 9b374c0041

View File

@ -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.