Fix CORS headers for key handler.

This commit is contained in:
Juliusz Chroboczek
2026-04-07 17:40:16 +02:00
parent c28a24aa32
commit eea92c5ac5
+1 -1
View File
@@ -501,7 +501,7 @@ type jwkset = struct {
} }
func keysHandler(w http.ResponseWriter, r *http.Request, g string) { func keysHandler(w http.ResponseWriter, r *http.Request, g string) {
if apiCORS(w, r, "HEAD, GET") { if apiCORS(w, r, "PUT, DELETE") {
return return
} }
if !checkAdmin(w, r) { if !checkAdmin(w, r) {