CookieAuthenticationOptions.CookieHttpOnly 屬性

定義

判斷瀏器是否應該允許 Cookie 由用戶端 Javascript 存取。 預設為 true,表示 cookie 僅會傳送至 HTTP 要求,且頁面上的指令碼無法加以使用。

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

屬性值

適用於