From 8a994bb1275acc0b83c41ae785a4815f83a97ec6 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Tue, 15 Oct 2024 19:42:09 +0100 Subject: [PATCH] Uhh, I think I did the pattern wrong. I guess someone did get CORS. Signed-off-by: Arzumify --- services-src/auth/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services-src/auth/main.go b/services-src/auth/main.go index 6957a89..ebad170 100644 --- a/services-src/auth/main.go +++ b/services-src/auth/main.go @@ -355,7 +355,7 @@ func Main(information library.ServiceInitializationInformation) *chi.Mux { } 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-Headers", "*") w.Header().Set("Access-Control-Allow-Methods", "*")