From 605e1dad395a842dedc31091e12e1f860e04159c Mon Sep 17 00:00:00 2001 From: Tilo Klarenbeek Date: Sun, 29 Jan 2023 22:39:52 +0100 Subject: [PATCH] :) --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 57b7413..7cec47a 100644 --- a/main.go +++ b/main.go @@ -127,8 +127,7 @@ func loadCurrent() { func cors(fs http.Handler) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - // do your cors stuff - // return if you do not want the FileServer handle a specific request + (*w).Header().Set("Access-Control-Allow-Origin", "*") fs.ServeHTTP(w, r) }