Package | Description |
---|---|
io.vertx.reactivex.ext.web.handler |
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<CorsHandler> |
CorsHandler.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
CorsHandler |
CorsHandler.addOrigin(String origin)
Add an origin to the list of allowed Origins.
|
CorsHandler |
CorsHandler.addOrigins(List<String> origins)
Set the list of allowed origins.
|
CorsHandler |
CorsHandler.addRelativeOrigin(String origin)
Add a relative origin to the list of allowed Origins.
|
CorsHandler |
CorsHandler.addRelativeOrigins(List<String> origins)
Set the list of allowed relative origins.
|
CorsHandler |
CorsHandler.allowCredentials(boolean allow)
Set whether credentials are allowed.
|
CorsHandler |
CorsHandler.allowedHeader(String headerName)
Add an allowed header
|
CorsHandler |
CorsHandler.allowedHeaders(Set<String> headerNames)
Add a set of allowed headers
|
CorsHandler |
CorsHandler.allowedMethod(HttpMethod method)
Add an allowed method
|
CorsHandler |
CorsHandler.allowedMethods(Set<HttpMethod> methods)
Add a set of allowed methods
|
CorsHandler |
CorsHandler.allowPrivateNetwork(boolean allow)
Set whether access from public to private networks are allowed.
|
static CorsHandler |
CorsHandler.create()
Create a empty CORS handler that allows
* origin. |
static CorsHandler |
CorsHandler.create(String allowedOriginPattern)
Deprecated.
|
CorsHandler |
CorsHandler.exposedHeader(String headerName)
Add an exposed header
|
CorsHandler |
CorsHandler.exposedHeaders(Set<String> headerNames)
Add a set of exposed headers
|
CorsHandler |
CorsHandler.maxAgeSeconds(int maxAgeSeconds)
Set how long the browser should cache the information
|
static CorsHandler |
CorsHandler.newInstance(CorsHandler arg) |
Copyright © 2023 Eclipse. All rights reserved.