Uses of Class
com.azure.resourcemanager.appcontainers.models.CorsPolicy
Packages that use CorsPolicy
Package
Description
Package containing the data models for ContainerAppsApiClient.
-
Uses of CorsPolicy in com.azure.resourcemanager.appcontainers.models
Methods in com.azure.resourcemanager.appcontainers.models that return CorsPolicyModifier and TypeMethodDescriptionIngress.corsPolicy()
Get the corsPolicy property: CORS policy for container app.static CorsPolicy
CorsPolicy.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CorsPolicy from the JsonReader.CorsPolicy.withAllowCredentials
(Boolean allowCredentials) Set the allowCredentials property: Specifies whether the resource allows credentials.CorsPolicy.withAllowedHeaders
(List<String> allowedHeaders) Set the allowedHeaders property: Specifies the content for the access-control-allow-headers header.CorsPolicy.withAllowedMethods
(List<String> allowedMethods) Set the allowedMethods property: Specifies the content for the access-control-allow-methods header.CorsPolicy.withAllowedOrigins
(List<String> allowedOrigins) Set the allowedOrigins property: Specifies the content for the access-control-allow-origins header.CorsPolicy.withExposeHeaders
(List<String> exposeHeaders) Set the exposeHeaders property: Specifies the content for the access-control-expose-headers header.CorsPolicy.withMaxAge
(Integer maxAge) Set the maxAge property: Specifies the content for the access-control-max-age header.Methods in com.azure.resourcemanager.appcontainers.models with parameters of type CorsPolicyModifier and TypeMethodDescriptionIngress.withCorsPolicy
(CorsPolicy corsPolicy) Set the corsPolicy property: CORS policy for container app.