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.v2020_08_01_preview.models._storage_management_client_enums.CorsRuleAllowedMethodsItem]], max_age_in_seconds: int, exposed_headers: List[str], allowed_headers: List[str], **kwargs)
Variables
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.
Required. Required if CorsRule element is present. A list of response headers to expose to CORS clients.
Feedback
Submit and view feedback for