Uhh, I think I did the pattern wrong. I guess someone did get CORS.

Signed-off-by: Arzumify <jliwin98@danwin1210.de>
This commit is contained in:
Tracker-Friendly 2024-10-15 19:42:09 +01:00
parent 343a0b0eb7
commit 8a994bb127
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ func Main(information library.ServiceInitializationInformation) *chi.Mux {
} }
router.Use(disableCors) router.Use(disableCors)
router.Options("*", func(w http.ResponseWriter, r *http.Request) { router.Options("/*", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Headers", "*") w.Header().Set("Access-Control-Allow-Headers", "*")
w.Header().Set("Access-Control-Allow-Methods", "*") w.Header().Set("Access-Control-Allow-Methods", "*")