CookieAuthenticationOptions.CookieHttpOnly 属性

定义

确定浏览器是否应允许客户端 javascript 访问 Cookie。 默认值为 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

属性值

适用于