我正在尝试从网站下载XML文件。下载文件后,浏览器会显示一条消息:“此类文件可能会损害您的计算机”。
但是它适用于其他计算机。 我试过了:
ChromeOptions options = new ChromeOptions();
options.AddArgument("--safebrowsing-disable-download-protection");
options.AddUserProfilePreference("safebrowsing", "enabled");