CorsRule Class
Specifies a CORS rule for the Blob service.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.storage._serialization.ModelCorsRule
Constructor
CorsRule(*, allowed_origins: List[str], allowed_methods: List[str | _models.AllowedMethods], max_age_in_seconds: int, exposed_headers: List[str], allowed_headers: List[str], **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
allowed_origins
|
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains. Required. |
allowed_methods
|
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. Required. |
max_age_in_seconds
|
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. Required. |
exposed_headers
|
Required if CorsRule element is present. A list of response headers to expose to CORS clients. Required. |
allowed_headers
|
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. Required. |
Variables
Name | Description |
---|---|
allowed_origins
|
Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains. Required. |
allowed_methods
|
Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. Required. |
max_age_in_seconds
|
Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. Required. |
exposed_headers
|
Required if CorsRule element is present. A list of response headers to expose to CORS clients. Required. |
allowed_headers
|
Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. Required. |
Azure SDK for Python