From 1ca5f8e640203f2d1ea7aff2222dfcb6cc43c228 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 14 Oct 2018 21:32:55 +0200 Subject: [PATCH] go-ipfs-config: Allow the use of the User-Agent header License: MIT Signed-off-by: Ivan --- config/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/init.go b/config/init.go index a6e70b711..f45a59673 100644 --- a/config/init.go +++ b/config/init.go @@ -64,7 +64,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { HTTPHeaders: map[string][]string{ "Access-Control-Allow-Origin": []string{"*"}, "Access-Control-Allow-Methods": []string{"GET"}, - "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range"}, + "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range", "User-Agent"}, }, APICommands: []string{}, },