diff --git a/api/main.go b/api/main.go index 6311d20..0aa8744 100644 --- a/api/main.go +++ b/api/main.go @@ -129,6 +129,7 @@ func generateJSON(ip string) (body, error) { func handleRequest(w http.ResponseWriter, r *http.Request) { w.Header().Add("Access-Control-Allow-Origin", "*") + w.Header().Add("Content-Type", "application/json") sourceIP := func() string { if q := r.URL.Query().Get("q"); q != "" {