Accept third-party cookies (Deprecated): registry value AcceptThirdPartyComputerHKLM\Software\Policies\Mozilla\Firefox\Cookies

Policy ID
Cookies_AcceptThirdParty
Scope
Computer Configuration, User Configuration
Supported on
Firefox 60 or later, Firefox 60 ESR or later
Source
Mozilla Firefox Policy Templates (version 8.3)
Category
Mozilla › Firefox › Cookies

Registry

AcceptThirdParty

REG_SZComputerUser
Enabled value
Depends on the option value
Element
-
Options
ItemStored value
Alwaysalways
Nevernever
From visitedfrom-visited
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Mozilla\Firefox\Cookies]

; Options (use only one)
; Always
"AcceptThirdParty"="always"
; Never
"AcceptThirdParty"="never"
; From visited
"AcceptThirdParty"="from-visited"
CMD
:: Options (use only one)

:: Always
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "AcceptThirdParty" /t REG_SZ /d "always" /f
:: Never
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "AcceptThirdParty" /t REG_SZ /d "never" /f
:: From visited
reg add "HKLM\Software\Policies\Mozilla\Firefox\Cookies" /v "AcceptThirdParty" /t REG_SZ /d "from-visited" /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Force | Out-Null

# Options (use only one)
# Always
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'AcceptThirdParty' -PropertyType String -Value 'always' -Force | Out-Null
# Never
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'AcceptThirdParty' -PropertyType String -Value 'never' -Force | Out-Null
# From visited
New-ItemProperty -Path 'HKLM:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'AcceptThirdParty' -PropertyType String -Value 'from-visited' -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Mozilla\Firefox\Cookies]

; Options (use only one)
; Always
"AcceptThirdParty"="always"
; Never
"AcceptThirdParty"="never"
; From visited
"AcceptThirdParty"="from-visited"
CMD
:: Options (use only one)

:: Always
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "AcceptThirdParty" /t REG_SZ /d "always" /f
:: Never
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "AcceptThirdParty" /t REG_SZ /d "never" /f
:: From visited
reg add "HKCU\Software\Policies\Mozilla\Firefox\Cookies" /v "AcceptThirdParty" /t REG_SZ /d "from-visited" /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Force | Out-Null

# Options (use only one)
# Always
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'AcceptThirdParty' -PropertyType String -Value 'always' -Force | Out-Null
# Never
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'AcceptThirdParty' -PropertyType String -Value 'never' -Force | Out-Null
# From visited
New-ItemProperty -Path 'HKCU:\Software\Policies\Mozilla\Firefox\Cookies' -Name 'AcceptThirdParty' -PropertyType String -Value 'from-visited' -Force | Out-Null