From dd16f64998cd84e551a63a357de845472e795098 Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Tue, 7 Jul 2015 10:01:22 +0200 Subject: [PATCH] Polish @CrossOrigin javadoc --- .../org/springframework/web/bind/annotation/CrossOrigin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.