Class CorsSettings
java.lang.Object
com.azure.resourcemanager.appservice.models.CorsSettings
Cross-Origin Resource Sharing (CORS) settings for the app.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet 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).Get the supportCredentials property: Gets or sets whether CORS requests with credentials are allowed.void
validate()
Validates the instance.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).withSupportCredentials
(Boolean supportCredentials) Set the supportCredentials property: Gets or sets whether CORS requests with credentials are allowed.
-
Constructor Details
-
CorsSettings
public CorsSettings()
-
-
Method Details
-
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). Use "*" to allow all.- Returns:
- the allowedOrigins value.
-
withAllowedOrigins
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). Use "*" to allow all.- Parameters:
allowedOrigins
- the allowedOrigins value to set.- Returns:
- the CorsSettings object itself.
-
supportCredentials
Get the supportCredentials property: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.- Returns:
- the supportCredentials value.
-
withSupportCredentials
Set the supportCredentials property: Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.- Parameters:
supportCredentials
- the supportCredentials value to set.- Returns:
- the CorsSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-