提交 b036b23a 作者: dignifiedquire

Add access-control-headers to gateway config

License: MIT
Signed-off-by: 's avatarFriedel Ziegelmayer <dignifiedquire@gmail.com>
上级 e09c397a
...@@ -81,6 +81,14 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { ...@@ -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",
},
},
}, },
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论