Skip to content

Commit

Permalink
Add correct access control headers to the default api config
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
  • Loading branch information
dignifiedquire committed Nov 20, 2015
1 parent b9e8c00 commit 4f1594f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions repo/config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
API: "/ip4/127.0.0.1/tcp/5001",
Gateway: "/ip4/127.0.0.1/tcp/8080",
},
API: API{
HTTPHeaders: map[string][]string{
"Access-Control-Allow-Headers": []string{
"X-Stream-Output, X-Chunked-Output",
},
"Access-Control-Expose-Headers": []string{
"X-Stream-Output, X-Chunked-Output",
},
},
},

Bootstrap: BootstrapPeerStrings(bootstrapPeers),
SupernodeRouting: *snr,
Expand Down

0 comments on commit 4f1594f

Please sign in to comment.