CookieAuthenticationOptions.CookieHttpOnly 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定浏览器是否应允许客户端 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