提交 e26c1fe6 作者: Jakub Sztandera

Change sample API origin settings from wildcard to example.com

Resolves #2035

License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@gmail.com>
上级 62ba5eb9
......@@ -91,7 +91,7 @@ CORS Headers (for API)
You can setup CORS headers the same way:
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
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-Credentials '["true"]'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论