Add CORS header for development
This commit is contained in:
parent
5e1b8f6bd4
commit
2a7b1bfc2e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue