你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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, **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. |
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. |