public final class CorsSettings extends Object
| Constructor and Description |
|---|
CorsSettings() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowedOrigins()
Get the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin
calls (for example: http://example.com:12345).
|
Boolean |
supportCredentials()
Get the supportCredentials property: Gets or sets whether CORS requests with credentials are allowed.
|
void |
validate()
Validates the instance.
|
CorsSettings |
withAllowedOrigins(List<String> allowedOrigins)
Set the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin
calls (for example: http://example.com:12345).
|
CorsSettings |
withSupportCredentials(Boolean supportCredentials)
Set the supportCredentials property: Gets or sets whether CORS requests with credentials are allowed.
|
public List<String> allowedOrigins()
public CorsSettings withAllowedOrigins(List<String> allowedOrigins)
allowedOrigins - the allowedOrigins value to set.public Boolean supportCredentials()
public CorsSettings withSupportCredentials(Boolean supportCredentials)
supportCredentials - the supportCredentials value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.