Modifier and Type | Method and Description |
---|---|
Cors |
build()
Creates a CORS configuration.
|
Cors.Builder |
maxAgeSeconds(Integer maxAgeSeconds)
Deprecated.
|
Cors.Builder |
methods(Iterable<HttpMethod> methods)
Deprecated.
|
Cors.Builder |
origins(Iterable<Cors.Origin> origins)
Deprecated.
|
Cors.Builder |
responseHeaders(Iterable<String> headers)
Deprecated.
|
Cors.Builder |
setMaxAgeSeconds(Integer maxAgeSeconds)
Sets the max time in seconds in which a client can issue requests before sending a new
preflight request.
|
Cors.Builder |
setMethods(Iterable<HttpMethod> methods)
Sets the HTTP methods supported by this CORS configuration.
|
Cors.Builder |
setOrigins(Iterable<Cors.Origin> origins)
Sets the origins for this CORS configuration.
|
Cors.Builder |
setResponseHeaders(Iterable<String> headers)
Sets the response headers supported by this CORS configuration.
|
@Deprecated public Cors.Builder maxAgeSeconds(Integer maxAgeSeconds)
public Cors.Builder setMaxAgeSeconds(Integer maxAgeSeconds)
@Deprecated public Cors.Builder methods(Iterable<HttpMethod> methods)
public Cors.Builder setMethods(Iterable<HttpMethod> methods)
@Deprecated public Cors.Builder origins(Iterable<Cors.Origin> origins)
public Cors.Builder setOrigins(Iterable<Cors.Origin> origins)
@Deprecated public Cors.Builder responseHeaders(Iterable<String> headers)
public Cors.Builder setResponseHeaders(Iterable<String> headers)
public Cors build()
Copyright © 2017 Google. All rights reserved.