CorsPolicy Class
Cross-Origin-Resource-Sharing policy.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.appcontainers._serialization.ModelCorsPolicy
Constructor
CorsPolicy(*, allowed_origins: List[str], allowed_methods: List[str] | None = None, allowed_headers: List[str] | None = None, expose_headers: List[str] | None = None, max_age: int | None = None, allow_credentials: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
allowed_origins
|
Specifies the content for the access-control-allow-origins header. Required. |
allowed_methods
|
Specifies the content for the access-control-allow-methods header. |
allowed_headers
|
Specifies the content for the access-control-allow-headers header. |
expose_headers
|
Specifies the content for the access-control-expose-headers header. |
max_age
|
Specifies the content for the access-control-max-age header. |
allow_credentials
|
Specifies whether the resource allows credentials. |
Variables
Name | Description |
---|---|
allowed_origins
|
Specifies the content for the access-control-allow-origins header. Required. |
allowed_methods
|
Specifies the content for the access-control-allow-methods header. |
allowed_headers
|
Specifies the content for the access-control-allow-headers header. |
expose_headers
|
Specifies the content for the access-control-expose-headers header. |
max_age
|
Specifies the content for the access-control-max-age header. |
allow_credentials
|
Specifies whether the resource allows credentials. |
Azure SDK for Python