CookieAuthenticationOptions.CookieHttpOnly プロパティ

定義

注意事項

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SameSite.

注意事項

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.

このプロパティは互換性のために残されていますが、今後のバージョンでは削除される予定です。 推奨される代替手段は、 にあります Cookie

ブラウザーでクライアント側 JavaScript から Cookie にアクセスできるようにする必要があるかどうかを決定します。 既定は true です。Cookie は HTTP 要求にのみ渡され、ページ上のスクリプトから使用できないことを意味します。

public:
 property bool CookieHttpOnly { bool get(); void set(bool value); };
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SameSite.")]
public bool CookieHttpOnly { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")]
public bool CookieHttpOnly { get; set; }
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.SameSite.")>]
member this.CookieHttpOnly : bool with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.HttpOnly.")>]
member this.CookieHttpOnly : bool with get, set
Public Property CookieHttpOnly As Boolean

プロパティ値

属性

適用対象