mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 04:47:45 +08:00
go-ipfs-config: Add access-control-headers to gateway config
License: MIT Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
This commit is contained in:
parent
e7989f1214
commit
511fb7e96e
@ -81,6 +81,14 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
|
||||
Gateway: Gateway{
|
||||
RootRedirect: "",
|
||||
Writable: false,
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user