go-ipfs-config: Allow the use of the User-Agent header
License: MIT Signed-off-by: Ivan <ivan386@users.noreply.github.com>
Ivan committed
Oct 14, 2018 at 21:32 UTC
1ca5f8e640203f2d1ea7aff2222dfcb6cc43c228
1 file changed
+1
-1
config/init.go
+1
-1
@@ -64,7 +64,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
64
HTTPHeaders: map[string][]string{
65
"Access-Control-Allow-Origin": []string{"*"},
66
"Access-Control-Allow-Methods": []string{"GET"},
67
- "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range"},
67
+ "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range", "User-Agent"},
68
},
69
APICommands: []string{},
70
},