RouteOptions.SuppressCheckForUnhandledSecurityMetadata 屬性

定義

取得或設定值,這個值表示是否隱藏未處理的安全性端點中繼資料檢查。

端點可以與需要由特定中介軟體處理才能採取動作的中繼資料相關聯,例如授權或 CORS。 如果未設定中介軟體,則不會處理這類中繼資料。

當 為 時,在 false 端點執行之前,路由會確認已處理所有已知的安全性特定中繼資料。 將此屬性設定為 true 隱藏這項檢查。

public:
 property bool SuppressCheckForUnhandledSecurityMetadata { bool get(); void set(bool value); };
public bool SuppressCheckForUnhandledSecurityMetadata { get; set; }
member this.SuppressCheckForUnhandledSecurityMetadata : bool with get, set
Public Property SuppressCheckForUnhandledSecurityMetadata As Boolean

屬性值

預設值為 false

備註

這項檢查會以防範意外不安全的設定。 您可以隱藏此檢查是否不符合應用程式的需求。

適用於