by eslammohamed » Fri Oct 12, 2018 8:38 am
i implement onBeforeCommandLineProcessing inside appHandler and every thing ok now , thank you
CefApp.addAppHandler(new CefAppHandlerAdapter(null) {
@Override
public void stateHasChanged(org.cef.CefApp.CefAppState state) {
// Shutdown the app if the native CEF part is terminated
if (state == CefAppState.TERMINATED) {
System.exit(0);
}
}
@Override
public void onBeforeCommandLineProcessing(String s, CefCommandLine cefCommandLine) {
cefCommandLine.appendSwitch("disable-web-security");
cefCommandLine.appendSwitch("allow-file-access-from-files");
super.onBeforeCommandLineProcessing(s, cefCommandLine);
}
});