|
@ -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) |
|
|