Configure HTTP Header Injection for specific URL patterns: registry value HttpHeaderInjection (Edge)ComputerHKLM\Software\Policies\Microsoft\Edge

Policy ID
HttpHeaderInjection
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 153, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge › Network settings

Registry

HttpHeaderInjection

REG_SZComputerUser
Enabled value
Depends on the option value
Element
Configure HTTP Header Injection for specific URL patterns
Value type
REG_SZ
Maximum length
1000000
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"HttpHeaderInjection"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Edge" /v "HttpHeaderInjection" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'HttpHeaderInjection' -PropertyType String -Value '<enter value>' -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"HttpHeaderInjection"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Policies\Microsoft\Edge" /v "HttpHeaderInjection" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'HttpHeaderInjection' -PropertyType String -Value '<enter value>' -Force | Out-Null