aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc/server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/server.go b/rpc/server.go
index a4cf1aa7c..9061c33ef 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -80,6 +80,8 @@ func NewJsonRpcServer(pipe *xeth.JSXEth, port int) (*JsonRpcServer, error) {
func apiHandler(xeth *EthereumApi) http.Handler {
fn := func(w http.ResponseWriter, req *http.Request) {
+ w.Header().Set("Access-Control-Allow-Origin", "*")
+
jsonlogger.Debugln("Handling request")
reqParsed, reqerr := JSON.ParseRequestBody(req)