CorsSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cross-Origin Resource Sharing (CORS) settings for the app.
public class CorsSettings
type CorsSettings = class
Public Class CorsSettings
- Inheritance
-
CorsSettings
Constructors
CorsSettings() |
Initializes a new instance of the CorsSettings class. |
CorsSettings(IList<String>, Nullable<Boolean>) |
Initializes a new instance of the CorsSettings class. |
Properties
AllowedOrigins |
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. |
SupportCredentials |
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. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應