Language

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.

このプロパティは廃止され、今後のバージョンで削除される予定です。 推奨される代替方法は、<seealso cref="P:Microsoft です。AspNetCore.Http.CookieBuilder.HttpOnly"></seealso> on 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

プロパティ値

属性

適用対象