|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public static @interface RestService.CorsSupportAnnotation used to inform that a given rest service class must support CORS requests.
| Required Element Summary | |
|---|---|
int |
maxAge
Specify a cache time for pre-flight CORS requests |
| Optional Element Summary | |
|---|---|
boolean |
allowCredentials
By default, cookies are not included in CORS requests. |
String[] |
allowOrigin
Origins allowed to make cors requests to this service. |
String |
allowOriginConfigFile
Origins allowed to make cors requests to this service. |
String[] |
exposeHeaders
Cors requests can only access the following headers by default: Cache-Control, Content-Language Content-Type, Expires, Last-Modified and Pragma. |
| Element Detail |
|---|
public abstract int maxAge
public abstract String[] allowOrigin
public abstract String allowOriginConfigFile
public abstract boolean allowCredentials
public abstract String[] exposeHeaders
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||