diff --git a/api/main.go b/api/main.go index e95d112..6311d20 100644 --- a/api/main.go +++ b/api/main.go @@ -128,6 +128,8 @@ func generateJSON(ip string) (body, error) { } func handleRequest(w http.ResponseWriter, r *http.Request) { + w.Header().Add("Access-Control-Allow-Origin", "*") + sourceIP := func() string { if q := r.URL.Query().Get("q"); q != "" { return q