Turn off the XDomainRequest object
Désactiver l’objet XDomainRequest
Explanation
This policy setting allows you to choose whether websites can request data across domains by using the XDomainRequest object. Note that this policy setting does not block client-side communication across domains through other features in Internet Explorer 8, and it does not prevent a site from requesting cross-domain data through a server.
If you enable this policy setting, websites cannot request data across domains by using the XDomainRequest object.
If you disable or do not configure this policy setting, websites can request data across domains by using the XDomainRequest object.
Ce paramètre de stratégie vous permet de déterminer si les sites Web peuvent demander des données sur plusieurs domaines à l’aide de l’objet XDomainRequest. Notez que ce paramètre de stratégie ne bloque pas la communication côté client entre les domaines via d’autres fonctionnalités d’Internet Explorer 8 et qu’il n’empêche pas un site d’effectuer des demandes de données entre domaines via un serveur.
Si vous activez ce paramètre de stratégie, les sites Web ne peuvent pas demander de données sur plusieurs domaines via l’objet XDomainRequest.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les sites Web peuvent demander des données sur plusieurs domaines via l’objet XDomainRequest.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_XDOMAINREQUESTHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_XDOMAINREQUEST- 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_DisableXDR
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_XDOMAINREQUEST'
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_DisableXDR
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_XDOMAINREQUEST'
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_DisableXDR
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_XDOMAINREQUEST'
Remove-ItemProperty -Path $k -Name 'iexplore.exe' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"