Turn off cross-document messaging
Désactiver la messagerie entre documents
Explanation
This policy setting allows you to manage whether documents can request data across third-party domains embedded in the page.
If you enable this policy setting, documents cannot request data across third-party domains embedded in the page.
If you disable or do not configure this policy setting, documents can request data across third-party domains embedded in the page.
Ce paramètre de stratégie vous permet de déterminer si des documents peuvent demander des données sur plusieurs domaines tiers incorporés dans la page.
Si vous activez ce paramètre de stratégie, les documents ne peuvent pas demander de données sur plusieurs domaines tiers incorporés dans la page.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les documents peuvent demander des données sur plusieurs domaines tiers incorporés dans la page.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CROSS_DOCUMENT_MESSAGINGHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CROSS_DOCUMENT_MESSAGING- Value name
iexplore.exe
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: inetres/IESF_DisableXDM
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CROSS_DOCUMENT_MESSAGING'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'iexplore.exe' -Value 0 -Type DWordDisable
# Disable: inetres/IESF_DisableXDM
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CROSS_DOCUMENT_MESSAGING'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'iexplore.exe' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/IESF_DisableXDM
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_CROSS_DOCUMENT_MESSAGING'
Remove-ItemProperty -Path $k -Name 'iexplore.exe' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"