Added jsonrpc CORS middleware.
@@ -115,7 +115,7 @@ func (srv *Manager) Start() {
// jsonrpc
g := srv.e.Group("/api")
// g.Use(JsonRpc(srv, mr), JsonRpcLogger(), Chunk())
- g.Use(JsonRpc(mr), Chunk())
+ g.Use(JsonRpc(mr), Chunk(), middleware.CORS())
g.POST("/v3", mr.Handle, AnyChainInjector(srv))
g.POST("/v3/:channel", mr.Handle, ChainInjector(srv))
