From 8943808264507fc2dbf29a74607f0f26737b4380 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Tue, 15 Oct 2024 20:13:38 +0100 Subject: [PATCH] Disable CORS again... 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 756e91d..e49388e 100644 --- a/services-src/auth/main.go +++ b/services-src/auth/main.go @@ -359,7 +359,7 @@ func Main(information library.ServiceInitializationInformation) *chi.Mux { disableCorsHandleFunc := func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Access-Control-Allow-Methods", "POST") - w.Header().Set("Access-Control-Allow-Headers", "Content-Type") + w.Header().Set("Access-Control-Allow-Headers", "authorization, content-type") w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) }