如何设置 --allow-file-access-from-files 到 cefsharp wpf?

问题描述 投票:0回答:1
c# wpf cefsharp chromium-embedded
1个回答
0
投票

其实很简单:

只需在构造函数中执行此操作:

            var settings = new CefSettings();
            settings.CefCommandLineArgs.Add("allow-file-access-from-files");
            settings.CefCommandLineArgs.Add("allow-universal-access-from-files");           
            Cef.Initialize(settings);
© www.soinside.com 2019 - 2024. All rights reserved.