From 8fa840cd8c1a60ab60ad81ab16021a9cbd52bb7c Mon Sep 17 00:00:00 2001 From: Bennett Wetters Date: Thu, 9 Nov 2023 21:50:33 +0100 Subject: [PATCH] Set Access-Control-Allow-Origin header to * for OK response Fixes #5 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 48c0325..9759334 100644 --- a/main.go +++ b/main.go @@ -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)