Module io.helidon.microprofile.cors
Package io.helidon.microprofile.cors
Annotation Type CrossOrigin
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface CrossOrigin
CrossOrigin annotation.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowCredentialsWhether the client can send cookies or credentials.String[]allowHeadersA list of request headers that are allowed or"*"to allow all headers.String[]allowMethodsA list of supported HTTP request methods.String[]exposeHeadersA list of response headers allowed for clients other than the "standard" ones.longmaxAgePre-flight response duration in seconds.String[]valueA list of origins that are allowed such as"http://foo.com"or"*"to allow all origins.
-
-
-
Element Detail
-
value
String[] value
A list of origins that are allowed such as"http://foo.com"or"*"to allow all origins. Corresponds to headerAccess-Control-Allow-Origin.- Returns:
- Allowed origins.
- Default:
- {"*"}
-
-
-
allowHeaders
String[] allowHeaders
A list of request headers that are allowed or"*"to allow all headers. Corresponds toAccess-Control-Allow-Headers.- Returns:
- Allowed headers.
- Default:
- {"*"}
-
-
-
exposeHeaders
String[] exposeHeaders
A list of response headers allowed for clients other than the "standard" ones. Corresponds toAccess-Control-Expose-Headers.- Returns:
- Exposed headers.
- Default:
- {}
-
-
-
allowMethods
String[] allowMethods
A list of supported HTTP request methods. In response to pre-flight requests. Corresponds toAccess-Control-Allow-Methods.- Returns:
- Allowed methods.
- Default:
- {"*"}
-
-