Set Access-Control-Allow-Origin header to * for OK response

Fixes #5
This commit is contained in:
Bendodroid 2023-11-09 21:50:33 +01:00
parent 25938b6b3a
commit 8fa840cd8c
Signed by: bendodroid
GPG key ID: 3EEE19A0F73D5FFC

View file

@ -68,6 +68,7 @@ func main() {
return
}
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = w.Write(response)