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 97f8a48597c03..9a789b0e0ff73 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