Fix CORS headers for key handler.
This commit is contained in:
1 parent
c28a24aa32
commit
eea92c5ac5
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user