diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSFilter.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSFilter.java index b28d0d7a470cb..b6def745a683c 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSFilter.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSFilter.java @@ -150,6 +150,7 @@ public void handle(RoutingContext event) { } } if (!allowsOrigin) { + LOG.debugf("Invalid origin %s", origin); response.setStatusCode(403); response.setStatusMessage("CORS Rejected - Invalid origin"); } else { @@ -183,7 +184,7 @@ public void handle(RoutingContext event) { //we check that the actual request matches the allowed methods and headers if (!isMethodAllowed(request.method())) { - LOG.debug("Method is not allowed"); + LOG.debugf("Method %s is not allowed", request.method()); response.setStatusCode(403); response.setStatusMessage("CORS Rejected - Invalid method"); response.end();