From 703ae09c3cdf7a18a3cc047f2e1eef986eae801a Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 18 Apr 2023 12:57:53 +0200 Subject: [PATCH] Allow the OPTIONS method for static resources Fixes #32696 --- .../io/quarkus/vertx/http/runtime/StaticResourcesRecorder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/StaticResourcesRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/StaticResourcesRecorder.java index a6a841e585b47..7738d9bfe34cd 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/StaticResourcesRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/StaticResourcesRecorder.java @@ -113,6 +113,7 @@ public void accept(Route route) { // No other HTTP methods should be used route.method(HttpMethod.GET); route.method(HttpMethod.HEAD); + route.method(HttpMethod.OPTIONS); for (Handler i : handlers) { route.handler(i); }