Modifier and Type | Method and Description |
---|---|
Cors |
build()
Creates a CORS configuration.
|
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.
|
public Cors.Builder setMaxAgeSeconds(Integer maxAgeSeconds)
public Cors.Builder setMethods(Iterable<HttpMethod> methods)
public Cors.Builder setOrigins(Iterable<Cors.Origin> origins)
public Cors.Builder setResponseHeaders(Iterable<String> headers)
public Cors build()
Copyright © 2023 Google LLC. All rights reserved.