diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java index 9bd2925940..d2390c855e 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java @@ -55,7 +55,7 @@ public @interface CrossOrigin { String[] value() default {}; /** - * List of allowed origins. + * List of allowed origins, e.g. {@code "http://domain1.com"}. *
These values are placed in the {@code Access-Control-Allow-Origin} * header of both the pre-flight response and the actual response. * {@code "*"} means that all origins are allowed. @@ -83,7 +83,8 @@ public @interface CrossOrigin { String[] exposedHeaders() default {}; /** - * List of supported HTTP request methods. + * List of supported HTTP request methods, e.g. + * {@code "{RequestMethod.GET, RequestMethod.POST}"}. *
Methods specified here override those specified via {@code RequestMapping}. *
If undefined, methods defined by {@link RequestMapping} annotation * are used.