CorsRule Class

Specifies a CORS rule for the Blob service.

All required parameters must be populated in order to send to Azure.

Inheritance
CorsRule

Constructor

CorsRule(*, allowed_origins: List[str], allowed_methods: List[Union[str, azure.mgmt.storage.v2019_06_01.models._storage_management_client_enums.CorsRuleAllowedMethodsItem]], max_age_in_seconds: int, exposed_headers: List[str], allowed_headers: List[str], **kwargs)

Variables

allowed_origins
list[str]

Required. Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains.

allowed_methods
list[str or CorsRuleAllowedMethodsItem]

Required. Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

max_age_in_seconds
int

Required. Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

exposed_headers
list[str]

Required. Required if CorsRule element is present. A list of response headers to expose to CORS clients.

allowed_headers
list[str]

Required. Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.