Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
5203eac6
Commit
5203eac6
authored
Jul 03, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1443 from carver/patch-1
daemon help docs for CORS
parents
0d42a6a7
c4fb36b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+7
-1
No files found.
cmd/ipfs/daemon.go
View file @
5203eac6
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment