提交 5203eac6 作者: Juan Batiz-Benet

Merge pull request #1443 from carver/patch-1

daemon help docs for CORS
......@@ -68,7 +68,13 @@ in the network, use 0.0.0.0 as the ip address:
Be careful if you expose the API. It is a security risk, as anyone could control
your node remotely. If you need to control the node remotely, make sure to protect
the port as you would other services or database (firewall, authenticated proxy, etc).`,
the port as you would other services or database (firewall, authenticated proxy, etc).
In order to explicitly allow Cross-Origin requests, export the root url as
environment variable API_ORIGIN. For example, to allow a local server at port 8888,
run this then restart the daemon:
export API_ORIGIN="http://localhost:8888/`,
},
Options: []cmds.Option{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论