Change sample API origin settings from wildcard to example.com
Resolves #2035 License: MIT Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>
Jakub Sztandera committed
Feb 2, 2016 at 22:14 UTC
e26c1fe60a6e63bcfdd6e7c1e197a6e46ac32a85
1 file changed
+1
-1
cmd/ipfs/daemon.go
+1
-1
@@ -91,7 +91,7 @@ CORS Headers (for API)
91
92
You can setup CORS headers the same way:
93
94
- ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
94
+ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["example.com"]'
95
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
96
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
97