diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpConfig.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpConfig.java index c3c9ec26e3aa6..05c77effe29a6 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpConfig.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpConfig.java @@ -26,9 +26,20 @@ public interface VertxHttpConfig { /** * Enable the CORS filter. */ + @WithName("cors.enabled") + @WithDefault("${quarkus.http.cors:false}") + boolean corsEnabled(); + + /** + * Enable the CORS filter. + * + * @deprecated Use {@link VertxHttpConfig#corsEnabled()}. Deprecated because it requires additional syntax to + * configure with the group {@link VertxHttpConfig#cors()} in YAML config. + */ @WithName("cors") @WithDefault("false") - boolean corsEnabled(); + @Deprecated + boolean oldCorsEnabled(); /** * The HTTP port