public class CORSConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
Optional<Duration> |
accessControlMaxAge
The `Access-Control-Max-Age` response header value indicating
how long the results of a pre-flight request can be cached.
|
List<String> |
exposedHeaders
HTTP headers exposed in CORS
Comma separated list of valid headers.
|
List<String> |
headers
HTTP headers allowed for CORS
Comma separated list of valid headers.
|
List<io.vertx.core.http.HttpMethod> |
methods
HTTP methods allowed for CORS
Comma separated list of valid methods.
|
List<String> |
origins
Origins allowed for CORS
Comma separated list of valid URLs.
|
| Constructor and Description |
|---|
CORSConfig() |
@ConfigItem public List<String> origins
@ConfigItem public List<io.vertx.core.http.HttpMethod> methods
@ConfigItem public List<String> headers
@ConfigItem public List<String> exposedHeaders
@ConfigItem public Optional<Duration> accessControlMaxAge
Copyright © 2019 JBoss by Red Hat. All rights reserved.