diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-29 01:14:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-29 01:14:28 +0800 |
commit | 7f638f0b2d8d989be25e660178d79df3278e4c84 (patch) | |
tree | 85c74ca9ca6c604df04e13c9d90d8af15b99e8d6 /rpc/http | |
parent | b46e1ca97e61ebfe4c37961e723142245efe5016 (diff) | |
download | go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.tar go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.gz go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.bz2 go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.lz go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.xz go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.zst go-tangerine-7f638f0b2d8d989be25e660178d79df3278e4c84.zip |
moving to a better xeth
Diffstat (limited to 'rpc/http')
-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) |