Skip to content

Commit

Permalink
Merge pull request #2284 from Kubuxu/fix/#2035
Browse files Browse the repository at this point in the history
Change sample API origin settings from wildcard to example.com
  • Loading branch information
whyrusleeping committed Feb 3, 2016
2 parents 82cc616 + e26c1fe commit 8fadb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'
Expand Down

0 comments on commit 8fadb11

Please sign in to comment.