From 4d4b76c2e48e5d49dca20cea4410e436e0a8fccb Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Wed, 9 Mar 2022 09:40:44 +0100 Subject: [PATCH] Document| regex capabilities for CORS origins The current documentation on the CORS filter at https://quarkus.io/guides/http-reference#cors-filter only instructs about the regular expression capabilities for origins in the example, but not in the reference section for available config properties. This commit enhances the javadoc comment to include a hint about the regular expression support. --- .../java/io/quarkus/vertx/http/runtime/cors/CORSConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSConfig.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSConfig.java index 7f25b62176285..50f45d0b1f383 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSConfig.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/cors/CORSConfig.java @@ -15,7 +15,9 @@ public class CORSConfig { /** * Origins allowed for CORS * - * Comma separated list of valid URLs. ex: http://www.quarkus.io,http://localhost:3000 + * Comma separated list of valid URLs, e.g.: http://www.quarkus.io,http://localhost:3000 + * In case an entry of the list is surrounded by forward slashes, + * it is interpreted as a regular expression. * The filter allows any origin if this is not set. * * default: returns any requested origin as valid