従来の SameSite Cookie の動作に関する設定を有効にする (現在不使用) のレジストリ値 LegacySameSiteCookieBehaviorEnabledコンピューターHKLM\Software\Policies\Microsoft\Edge

ポリシー ID
LegacySameSiteCookieBehaviorEnabled
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Microsoft Edge バージョン 80-94、Windows 7 以降
出典
Microsoft Edge Policy Templates (バージョン 155.0.4283.45)
カテゴリ
Microsoft Edge › コンテンツの設定

レジストリ

LegacySameSiteCookieBehaviorEnabled

REG_DWORDコンピューターユーザー
…\Software\Policies\Microsoft\EdgeHKLM\Software\Policies\Microsoft\Edge 現在のキー
HKCU\Software\Policies\Microsoft\Edge
有効時の値
オプションの値に依存
要素
従来の SameSite Cookie の動作に関する設定を有効にする
オプション
項目保存される値
すべてのサイトの Cookie について、従来の SameSite の動作に戻す1
すべてのサイトの Cookie について、SameSite-by-default の動作を使用する2
.reg · CMD · PowerShell で適用する
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; 選択項目 (1 つだけ使用)
; すべてのサイトの Cookie について、従来の SameSite の動作に戻す
"LegacySameSiteCookieBehaviorEnabled"=dword:00000001
; すべてのサイトの Cookie について、SameSite-by-default の動作を使用する
"LegacySameSiteCookieBehaviorEnabled"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: すべてのサイトの Cookie について、従来の SameSite の動作に戻す
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "LegacySameSiteCookieBehaviorEnabled" /t REG_DWORD /d 1 /f
:: すべてのサイトの Cookie について、SameSite-by-default の動作を使用する
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "LegacySameSiteCookieBehaviorEnabled" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# すべてのサイトの Cookie について、従来の SameSite の動作に戻す
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'LegacySameSiteCookieBehaviorEnabled' -PropertyType DWord -Value 1 -Force | Out-Null
# すべてのサイトの Cookie について、SameSite-by-default の動作を使用する
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'LegacySameSiteCookieBehaviorEnabled' -PropertyType DWord -Value 2 -Force | Out-Null
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; 選択項目 (1 つだけ使用)
; すべてのサイトの Cookie について、従来の SameSite の動作に戻す
"LegacySameSiteCookieBehaviorEnabled"=dword:00000001
; すべてのサイトの Cookie について、SameSite-by-default の動作を使用する
"LegacySameSiteCookieBehaviorEnabled"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: すべてのサイトの Cookie について、従来の SameSite の動作に戻す
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "LegacySameSiteCookieBehaviorEnabled" /t REG_DWORD /d 1 /f
:: すべてのサイトの Cookie について、SameSite-by-default の動作を使用する
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "LegacySameSiteCookieBehaviorEnabled" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# すべてのサイトの Cookie について、従来の SameSite の動作に戻す
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'LegacySameSiteCookieBehaviorEnabled' -PropertyType DWord -Value 1 -Force | Out-Null
# すべてのサイトの Cookie について、SameSite-by-default の動作を使用する
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'LegacySameSiteCookieBehaviorEnabled' -PropertyType DWord -Value 2 -Force | Out-Null