From e26c1fe60a6e63bcfdd6e7c1e197a6e46ac32a85 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 2 Feb 2016 22:14:19 +0100 Subject: [PATCH] Change sample API origin settings from wildcard to example.com Resolves #2035 License: MIT Signed-off-by: Jakub Sztandera --- cmd/ipfs/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ipfs/daemon.go b/cmd/ipfs/daemon.go index e87cc7a84..a2cbb6ccd 100644 --- a/cmd/ipfs/daemon.go +++ b/cmd/ipfs/daemon.go @@ -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"]'