Unverified 提交 807f45eb 作者: Steven Allen 提交者: GitHub

Merge pull request #6278 from ipfs/windows-friendly-deamon-help

fix: windows friendly daemon help
...@@ -100,8 +100,8 @@ ipfs supports passing arbitrary headers to the API and Gateway. You can ...@@ -100,8 +100,8 @@ ipfs supports passing arbitrary headers to the API and Gateway. You can
do this by setting headers on the API.HTTPHeaders and Gateway.HTTPHeaders do this by setting headers on the API.HTTPHeaders and Gateway.HTTPHeaders
keys: keys:
ipfs config --json API.HTTPHeaders.X-Special-Header '["so special :)"]' ipfs config --json API.HTTPHeaders.X-Special-Header "[\"so special :)\"]"
ipfs config --json Gateway.HTTPHeaders.X-Special-Header '["so special :)"]' ipfs config --json Gateway.HTTPHeaders.X-Special-Header "[\"so special :)\"]"
Note that the value of the keys is an _array_ of strings. This is because Note that the value of the keys is an _array_ of strings. This is because
headers can have more than one value, and it is convenient to pass through headers can have more than one value, and it is convenient to pass through
...@@ -111,9 +111,9 @@ CORS Headers (for API) ...@@ -111,9 +111,9 @@ CORS Headers (for API)
You can setup CORS headers the same way: You can setup CORS headers the same way:
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["example.com"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"example.com\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "[\"PUT\", \"GET\", \"POST\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
Shutdown Shutdown
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论