aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-29 01:14:28 +0800
committerobscuren <geffobscura@gmail.com>2015-01-29 01:14:28 +0800
commit7f638f0b2d8d989be25e660178d79df3278e4c84 (patch)
tree85c74ca9ca6c604df04e13c9d90d8af15b99e8d6 /rpc/http
parentb46e1ca97e61ebfe4c37961e723142245efe5016 (diff)
downloadgo-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.go2
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)