diff --git a/frontend/api.go b/frontend/api.go index a7538a2..ec5d357 100644 --- a/frontend/api.go +++ b/frontend/api.go @@ -107,6 +107,7 @@ func apiHandler(w http.ResponseWriter, r *http.Request) { } w.Header().Add("Content-Type", "application/json") + w.Header().Add("Access-Control-Allow-Origin", "*") bytes, err := json.Marshal(response) if err != nil { println(err.Error())