@cryptotaxi247 / kubo / commits / b036b23a2

Add access-control-headers to gateway config

License: MIT Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>

dignifiedquire committed Nov 20, 2015 at 20:25 UTC b036b23a233a64faa6a456522b0f45763be70e64
1 file changed +8
repo/config/init.go
+8
@@ -81,6 +81,14 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
81 Gateway: Gateway{
82 RootRedirect: "",
83 Writable: false,
84 + HTTPHeaders: map[string][]string{
85 + "Access-Control-Allow-Headers": []string{
86 + "X-Stream-Output, X-Chunked-Output",
87 + },
88 + "Access-Control-Expose-Headers": []string{
89 + "X-Stream-Output, X-Chunked-Output",
90 + },
91 + },
92 },
93 }
94