| Package | Description |
|---|---|
| com.google.api.services.compute.model |
| Modifier and Type | Method and Description |
|---|---|
CorsPolicy |
CorsPolicy.clone() |
CorsPolicy |
HttpRouteAction.getCorsPolicy()
The specification for allowing client side cross-origin requests.
|
CorsPolicy |
CorsPolicy.set(java.lang.String fieldName,
java.lang.Object value) |
CorsPolicy |
CorsPolicy.setAllowCredentials(java.lang.Boolean allowCredentials)
In response to a preflight request, setting this to true indicates that the actual request can
include user credentials.
|
CorsPolicy |
CorsPolicy.setAllowHeaders(java.util.List<java.lang.String> allowHeaders)
Specifies the content for the Access-Control-Allow-Headers header.
|
CorsPolicy |
CorsPolicy.setAllowMethods(java.util.List<java.lang.String> allowMethods)
Specifies the content for the Access-Control-Allow-Methods header.
|
CorsPolicy |
CorsPolicy.setAllowOriginRegexes(java.util.List<java.lang.String> allowOriginRegexes)
Specifies the regualar expression patterns that match allowed origins.
|
CorsPolicy |
CorsPolicy.setAllowOrigins(java.util.List<java.lang.String> allowOrigins)
Specifies the list of origins that will be allowed to do CORS requests.
|
CorsPolicy |
CorsPolicy.setDisabled(java.lang.Boolean disabled)
If true, specifies the CORS policy is disabled.
|
CorsPolicy |
CorsPolicy.setExposeHeaders(java.util.List<java.lang.String> exposeHeaders)
Specifies the content for the Access-Control-Expose-Headers header.
|
CorsPolicy |
CorsPolicy.setMaxAge(java.lang.Integer maxAge)
Specifies how long results of a preflight request can be cached in seconds.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRouteAction |
HttpRouteAction.setCorsPolicy(CorsPolicy corsPolicy)
The specification for allowing client side cross-origin requests.
|