Revert back options header debug

pull/1147/head
kompotkot 2024-12-09 11:02:19 +00:00
rodzic 703bea95f6
commit 2afc38f730
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -387,10 +387,6 @@ func corsMiddleware(next http.Handler) http.Handler {
}
if r.Method == "OPTIONS" {
w.Header().Set("Access-Control-Allow-Methods", "GET,POST,OPTIONS")
// Credentials are cookies, authorization headers, or TLS client certificates
w.Header().Set("Access-Control-Allow-Credentials", "true")
w.Header().Set("Access-Control-Allow-Headers", "Authorization, Content-Type")
w.WriteHeader(http.StatusOK)
return
}