Access-Control-Allow-Methods overeenkomend maken in CORS preflight-specificatie: registerwaarde AccessControlAllowMethodsInCORSPreflightSpecConformant (WebView2)GebruikerHKCU\Software\Policies\Microsoft\Edge\WebView2

Beleids-ID
AccessControlAllowMethodsInCORSPreflightSpecConformant
Bereik
Computerconfiguratie, Gebruikersconfiguratie
Ondersteund op
Microsoft Edge versie 123, Windows 7 of hoger
Bron
Microsoft Edge Policy Templates (versie 155.0.4283.45)
Categorie
Microsoft Edge WebView2 › Netwerkinstellingen

Register

AccessControlAllowMethodsInCORSPreflightSpecConformant

REG_DWORDGebruikerComputer
Waarde bij ingeschakeld
1
Waarde bij uitgeschakeld
0
Toepassen met .reg · CMD · PowerShell
GebruikerInstelling per account
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\WebView2]

; Opties (gebruik er maar één)
; Ingeschakeld
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000001
; Uitgeschakeld
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000000
CMD
:: Opties (gebruik er maar één)

:: Ingeschakeld
reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 1 /f
:: Uitgeschakeld
reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 0 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null

# Opties (gebruik er maar één)
# Ingeschakeld
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 1 -Force | Out-Null
# Uitgeschakeld
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 0 -Force | Out-Null
ComputerInstelling voor de hele computer
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\WebView2]

; Opties (gebruik er maar één)
; Ingeschakeld
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000001
; Uitgeschakeld
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000000
CMD
:: Opties (gebruik er maar één)

:: Ingeschakeld
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 1 /f
:: Uitgeschakeld
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 0 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null

# Opties (gebruik er maar één)
# Ingeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 1 -Force | Out-Null
# Uitgeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 0 -Force | Out-Null