### YamlMime:JavaType uid: "com.microsoft.azure.management.storage.CorsRule" fullName: "com.microsoft.azure.management.storage.CorsRule" name: "CorsRule" nameWithType: "CorsRule" summary: "Specifies a CORS rule for the Blob service." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public class **CorsRule**" constructors: - uid: "com.microsoft.azure.management.storage.CorsRule.CorsRule()" fullName: "com.microsoft.azure.management.storage.CorsRule.CorsRule()" name: "CorsRule()" nameWithType: "CorsRule.CorsRule()" syntax: "public CorsRule()" methods: - uid: "com.microsoft.azure.management.storage.CorsRule.allowedHeaders()" fullName: "com.microsoft.azure.management.storage.CorsRule.allowedHeaders()" name: "allowedHeaders()" nameWithType: "CorsRule.allowedHeaders()" summary: "Get required if CorsRule element is present." syntax: "public List allowedHeaders()" desc: "Get required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request." returns: description: "the allowedHeaders value" type: "<>" - uid: "com.microsoft.azure.management.storage.CorsRule.allowedMethods()" fullName: "com.microsoft.azure.management.storage.CorsRule.allowedMethods()" name: "allowedMethods()" nameWithType: "CorsRule.allowedMethods()" summary: "Get required if CorsRule element is present." syntax: "public List allowedMethods()" desc: "Get required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin." returns: description: "the allowedMethods value" type: "<>" - uid: "com.microsoft.azure.management.storage.CorsRule.allowedOrigins()" fullName: "com.microsoft.azure.management.storage.CorsRule.allowedOrigins()" name: "allowedOrigins()" nameWithType: "CorsRule.allowedOrigins()" summary: "Get required if CorsRule element is present." syntax: "public List allowedOrigins()" desc: "Get required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"\\*\" to allow all domains." returns: description: "the allowedOrigins value" type: "<>" - uid: "com.microsoft.azure.management.storage.CorsRule.exposedHeaders()" fullName: "com.microsoft.azure.management.storage.CorsRule.exposedHeaders()" name: "exposedHeaders()" nameWithType: "CorsRule.exposedHeaders()" summary: "Get required if CorsRule element is present." syntax: "public List exposedHeaders()" desc: "Get required if CorsRule element is present. A list of response headers to expose to CORS clients." returns: description: "the exposedHeaders value" type: "<>" - uid: "com.microsoft.azure.management.storage.CorsRule.maxAgeInSeconds()" fullName: "com.microsoft.azure.management.storage.CorsRule.maxAgeInSeconds()" name: "maxAgeInSeconds()" nameWithType: "CorsRule.maxAgeInSeconds()" summary: "Get required if CorsRule element is present." syntax: "public int maxAgeInSeconds()" desc: "Get required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response." returns: description: "the maxAgeInSeconds value" type: "" - uid: "com.microsoft.azure.management.storage.CorsRule.withAllowedHeaders(java.util.List)" fullName: "com.microsoft.azure.management.storage.CorsRule.withAllowedHeaders(List allowedHeaders)" name: "withAllowedHeaders(List allowedHeaders)" nameWithType: "CorsRule.withAllowedHeaders(List allowedHeaders)" summary: "Set required if CorsRule element is present." parameters: - description: "the allowedHeaders value to set" name: "allowedHeaders" type: "<>" syntax: "public CorsRule withAllowedHeaders(List allowedHeaders)" desc: "Set required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request." returns: description: "the CorsRule object itself." type: "" - uid: "com.microsoft.azure.management.storage.CorsRule.withAllowedMethods(java.util.List)" fullName: "com.microsoft.azure.management.storage.CorsRule.withAllowedMethods(List allowedMethods)" name: "withAllowedMethods(List allowedMethods)" nameWithType: "CorsRule.withAllowedMethods(List allowedMethods)" summary: "Set required if CorsRule element is present." parameters: - description: "the allowedMethods value to set" name: "allowedMethods" type: "<>" syntax: "public CorsRule withAllowedMethods(List allowedMethods)" desc: "Set required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin." returns: description: "the CorsRule object itself." type: "" - uid: "com.microsoft.azure.management.storage.CorsRule.withAllowedOrigins(java.util.List)" fullName: "com.microsoft.azure.management.storage.CorsRule.withAllowedOrigins(List allowedOrigins)" name: "withAllowedOrigins(List allowedOrigins)" nameWithType: "CorsRule.withAllowedOrigins(List allowedOrigins)" summary: "Set required if CorsRule element is present." parameters: - description: "the allowedOrigins value to set" name: "allowedOrigins" type: "<>" syntax: "public CorsRule withAllowedOrigins(List allowedOrigins)" desc: "Set required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"\\*\" to allow all domains." returns: description: "the CorsRule object itself." type: "" - uid: "com.microsoft.azure.management.storage.CorsRule.withExposedHeaders(java.util.List)" fullName: "com.microsoft.azure.management.storage.CorsRule.withExposedHeaders(List exposedHeaders)" name: "withExposedHeaders(List exposedHeaders)" nameWithType: "CorsRule.withExposedHeaders(List exposedHeaders)" summary: "Set required if CorsRule element is present." parameters: - description: "the exposedHeaders value to set" name: "exposedHeaders" type: "<>" syntax: "public CorsRule withExposedHeaders(List exposedHeaders)" desc: "Set required if CorsRule element is present. A list of response headers to expose to CORS clients." returns: description: "the CorsRule object itself." type: "" - uid: "com.microsoft.azure.management.storage.CorsRule.withMaxAgeInSeconds(int)" fullName: "com.microsoft.azure.management.storage.CorsRule.withMaxAgeInSeconds(int maxAgeInSeconds)" name: "withMaxAgeInSeconds(int maxAgeInSeconds)" nameWithType: "CorsRule.withMaxAgeInSeconds(int maxAgeInSeconds)" summary: "Set required if CorsRule element is present." parameters: - description: "the maxAgeInSeconds value to set" name: "maxAgeInSeconds" type: "" syntax: "public CorsRule withMaxAgeInSeconds(int maxAgeInSeconds)" desc: "Set required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response." returns: description: "the CorsRule object itself." type: "" type: "class" desc: "Specifies a CORS rule for the Blob service." metadata: {} package: "com.microsoft.azure.management.storage" artifact: com.microsoft.azure:azure-mgmt-storage:1.41.4