Access-Control-Allow-Methods Übereinstimmung in CORS Preflight-Spezifikation konform machen: Registrierungswert AccessControlAllowMethodsInCORSPreflightSpecConformant (WebView2)BenutzerHKCU\Software\Policies\Microsoft\Edge\WebView2

Richtlinien-ID
AccessControlAllowMethodsInCORSPreflightSpecConformant
Bereich
Computerkonfiguration, Benutzerkonfiguration
Unterstützt unter
Microsoft Edge Version 123, Windows 7 oder höher
Quelle
Microsoft Edge Policy Templates (Version 155.0.4283.45)
Kategorie
Microsoft Edge WebView2 › Netzwerkeinstellungen

Registrierung

AccessControlAllowMethodsInCORSPreflightSpecConformant

REG_DWORDBenutzerComputer
…\Software\Policies\Microsoft\Edge\WebView2HKCU\Software\Policies\Microsoft\Edge\WebView2 Aktueller Schlüssel
HKLM\Software\Policies\Microsoft\Edge\WebView2
Wert bei Aktivierung
1
Wert bei Deaktivierung
0
Mit .reg · CMD · PowerShell anwenden
BenutzerEinstellung pro Konto
.reg
Windows Registry Editor Version 5.00

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

; Optionen (nur eine verwenden)
; Aktiviert
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000001
; Deaktiviert
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Aktiviert
reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 1 /f
:: Deaktiviert
reg add "HKCU\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null

# Optionen (nur eine verwenden)
# Aktiviert
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 1 -Force | Out-Null
# Deaktiviert
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 0 -Force | Out-Null
ComputerComputerweite Einstellung
.reg
Windows Registry Editor Version 5.00

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

; Optionen (nur eine verwenden)
; Aktiviert
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000001
; Deaktiviert
"AccessControlAllowMethodsInCORSPreflightSpecConformant"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Aktiviert
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 1 /f
:: Deaktiviert
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2" /v "AccessControlAllowMethodsInCORSPreflightSpecConformant" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Force | Out-Null

# Optionen (nur eine verwenden)
# Aktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 1 -Force | Out-Null
# Deaktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge\WebView2' -Name 'AccessControlAllowMethodsInCORSPreflightSpecConformant' -PropertyType DWord -Value 0 -Force | Out-Null