Fixed CORS
This commit is contained in:
@@ -163,6 +163,7 @@ func getPreviousSong() string {
|
||||
}
|
||||
|
||||
func musicHandler(w http.ResponseWriter, r *http.Request) {
|
||||
(w).Header().Set("Access-Control-Allow-Origin", "*")
|
||||
if r.URL.Path == "/music" && r.Method == http.MethodGet {
|
||||
song := r.URL.Query().Get("song")
|
||||
if song == "" {
|
||||
|
||||
Reference in New Issue
Block a user