CorsSettings Class
Cross-Origin Resource Sharing (CORS) settings for the app.
- Inheritance
-
azure.mgmt.web._serialization.ModelCorsSettings
Constructor
CorsSettings(*, allowed_origins: List[str] | None = None, support_credentials: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
allowed_origins
|
Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. |
support_credentials
|
Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. |
Variables
Name | Description |
---|---|
allowed_origins
|
Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. |
support_credentials
|
Gets or sets whether CORS requests with credentials are allowed. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details. |
Azure SDK for Python