Skip to content

Commit ec08d34

Browse files
Add correct access control headers to the default api config
License: MIT Signed-off-by: Friedel Ziegelmayer <[email protected]>
1 parent b9e8c00 commit ec08d34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

repo/config/init.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
4444
API: "/ip4/127.0.0.1/tcp/5001",
4545
Gateway: "/ip4/127.0.0.1/tcp/8080",
4646
},
47+
API: API{
48+
HTTPHeaders: HTTPHeaders{
49+
"Access-Control-Allow-Headers": "X-Stream-Output, X-Chunked-Output",
50+
"Access-Control-Expose-Headers": "X-Stream-Output, X-Chunked-Output",
51+
},
52+
},
4753

4854
Bootstrap: BootstrapPeerStrings(bootstrapPeers),
4955
SupernodeRouting: *snr,

0 commit comments

Comments
 (0)