Unverified Commit 17635c8e authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #5451 from ipfs/doc/cors

api: fix outdated HTTPHeaders config documentation
parents ce236abf 9b374c00
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment