CookiePolicyOptions.HttpOnly 属性

定义

影响 Cookie 是否必须为 HttpOnly。

public:
 property Microsoft::AspNetCore::CookiePolicy::HttpOnlyPolicy HttpOnly { Microsoft::AspNetCore::CookiePolicy::HttpOnlyPolicy get(); void set(Microsoft::AspNetCore::CookiePolicy::HttpOnlyPolicy value); };
public Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy HttpOnly { get; set; }
member this.HttpOnly : Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy with get, set
Public Property HttpOnly As HttpOnlyPolicy

属性值

适用于