Browse Source

Access-Control-Allow-Origin="*"

pull/39/head
Jae Kwon 10 years ago
parent
commit
4e3e09bb59
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      rpc/http_handler.go

+ 1
- 0
rpc/http_handler.go View File

@ -71,6 +71,7 @@ func RecoverAndLogHandler(handler http.Handler) http.Handler {
begin := time.Now() begin := time.Now()
// Common headers // Common headers
rww.Header().Set("Access-Control-Allow-Origin", "*")
/* /*
origin := r.Header.Get("Origin") origin := r.Header.Get("Origin")
originUrl, err := url.Parse(origin) originUrl, err := url.Parse(origin)


Loading…
Cancel
Save