diff options
Diffstat (limited to 'rpc/http/server.go')
-rw-r--r-- | rpc/http/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/http/server.go b/rpc/http/server.go index 93b52a634..2a492f465 100644 --- a/rpc/http/server.go +++ b/rpc/http/server.go @@ -85,6 +85,8 @@ func (s *RpcHttpServer) Start() { func (s *RpcHttpServer) apiHandler(api *rpc.EthereumApi) http.Handler { fn := func(w http.ResponseWriter, req *http.Request) { + w.Header().Set("Access-Control-Allow-Origin", "*") + rpchttplogger.Debugln("Handling request") reqParsed, reqerr := JSON.ParseRequestBody(req) |