mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 10:49:24 +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{
|
Gateway: Gateway{
|
||||||
RootRedirect: "",
|
RootRedirect: "",
|
||||||
Writable: false,
|
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