From 4e3e09bb598cca457a27d82c0ebc618c447be157 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Wed, 7 Jan 2015 17:05:42 -0800 Subject: [PATCH] Access-Control-Allow-Origin="*" --- rpc/http_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/http_handler.go b/rpc/http_handler.go index e55a28a67..0f9ef39eb 100644 --- a/rpc/http_handler.go +++ b/rpc/http_handler.go @@ -71,6 +71,7 @@ func RecoverAndLogHandler(handler http.Handler) http.Handler { begin := time.Now() // Common headers + rww.Header().Set("Access-Control-Allow-Origin", "*") /* origin := r.Header.Get("Origin") originUrl, err := url.Parse(origin)