This commit is contained in:
Aaron-Junker 2021-11-15 17:33:30 +01:00
parent f0d578ef04
commit f86308183a

View file

@ -112,7 +112,7 @@ namespace monacoPreview
var webViewOptions = new CoreWebView2EnvironmentOptions
{
// Enable CORS for local file access.
AdditionalBrowserArguments = "--disable-web-security --disable-web-security"
AdditionalBrowserArguments = "--disable-web-security --allow-file-access-from-file"
};
var env = await CoreWebView2Environment.CreateAsync(null, null, webViewOptions);