mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 01:52:26 +08:00
Add access-control-headers to gateway config
License: MIT Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
This commit is contained in:
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user