From 2a7b1bfc2ee23278041bad7a73feab5135ad887c Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Mon, 6 Sep 2021 16:24:29 +0200 Subject: [PATCH] Add CORS header for development --- backend/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/main.go b/backend/main.go index c78db19..38367b8 100644 --- a/backend/main.go +++ b/backend/main.go @@ -115,6 +115,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) { defer downloader.Close() w.Header().Add("Content-Type", ContentTypeAudioM4A) + w.Header().Add("Access-Control-Allow-Origin", "*") w.WriteHeader(http.StatusOK) n, err := io.Copy(w, downloader)