public class CORSConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
Optional<Boolean> |
accessControlAllowCredentials
The `Access-Control-Allow-Credentials` header is used to tell the
browsers to expose the response to front-end JavaScript code when
the request’s credentials mode Request.credentials is “include”.
|
Optional<Duration> |
accessControlMaxAge
The `Access-Control-Max-Age` response header value indicating
how long the results of a pre-flight request can be cached.
|
Optional<List<String>> |
exposedHeaders
HTTP headers exposed in CORS
Comma separated list of valid headers.
|
Optional<List<String>> |
headers
HTTP headers allowed for CORS
Comma separated list of valid headers.
|
Optional<List<String>> |
methods
HTTP methods allowed for CORS
Comma separated list of valid methods.
|
Optional<List<String>> |
origins
Origins allowed for CORS
Comma separated list of valid URLs.
|
| Constructor and Description |
|---|
CORSConfig() |
@ConfigItem @ConvertWith(value=io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<List<String>> origins
@ConfigItem @ConvertWith(value=io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<List<String>> methods
@ConfigItem @ConvertWith(value=io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<List<String>> headers
@ConfigItem @ConvertWith(value=io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<List<String>> exposedHeaders
@ConfigItem public Optional<Duration> accessControlMaxAge
@ConfigItem public Optional<Boolean> accessControlAllowCredentials
Copyright © 2020 JBoss by Red Hat. All rights reserved.