Skip to content

Commit

Permalink
Deprecate quarkus.http.cors and add quarkus.http.cors.enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jan 29, 2025
1 parent cd770e5 commit fac0c0b
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fac0c0b

Please sign in to comment.