Add correct access control headers to the default api config
License: MIT Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
dignifiedquire committed
Nov 20, 2015 at 00:28 UTC
eedd5d5b73519e0e026a4d0f62a7070739616e3d
1 file changed
+10
repo/config/init.go
+10
@@ -44,6 +44,16 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
44
API: "/ip4/127.0.0.1/tcp/5001",
45
Gateway: "/ip4/127.0.0.1/tcp/8080",
46
},
47
+ API: API{
48
+ HTTPHeaders: map[string][]string{
49
+ "Access-Control-Allow-Headers": []string{
50
+ "X-Stream-Output, X-Chunked-Output",
51
+ },
52
+ "Access-Control-Expose-Headers": []string{
53
+ "X-Stream-Output, X-Chunked-Output",
54
+ },
55
+ },
56
+ },
57
58
Bootstrap: BootstrapPeerStrings(bootstrapPeers),
59
SupernodeRouting: *snr,