This commit is contained in:
2023-01-29 22:40:21 +01:00
parent 605e1dad39
commit 05d1d51448

View File

@@ -127,7 +127,7 @@ func loadCurrent() {
func cors(fs http.Handler) http.HandlerFunc { func cors(fs http.Handler) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) {
(*w).Header().Set("Access-Control-Allow-Origin", "*") (w).Header().Set("Access-Control-Allow-Origin", "*")
fs.ServeHTTP(w, r) fs.ServeHTTP(w, r)
} }