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
17635c8e
Unverified
Commit
17635c8e
authored
Sep 13, 2018
by
Steven Allen
Committed by
GitHub
Sep 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5451 from ipfs/doc/cors
api: fix outdated HTTPHeaders config documentation
parents
ce236abf
9b374c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
core/corehttp/commands.go
core/corehttp/commands.go
+1
-5
No files found.
core/corehttp/commands.go
View file @
17635c8e
...
...
@@ -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.
...
...
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