JCEF doesn't load page due to OAuth error

93 Views Asked by At

Please tell me, I decided to try the JCEF browser in my javafx program, I implemented a minimal example:

CefAppBuilder builder = new CefAppBuilder();
builder.setInstallDir(new File("jcef-bundle")); //Default
builder.setProgressHandler(new ConsoleProgressHandler()); //Default
try {app = builder.build();} 
catch (IOException | UnsupportedPlatformException | InterruptedException | CefInitializationException e) {throw new RuntimeException(e);}
client = app.createClient();
browser = client.createBrowser("https://www.google.com/", false, false);

I have Windows 7, so I use jcef maven 2022 (version 108.4.13), since the latest version does not run on Windows 7 The problem is that not a single site opens, not even localhost, but gives the following error:

[1011/224739.873:WARNING:account_consistency_mode_manager.cc(70)] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
[1011/224740.180:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)

Tried to run the example https://github.com/jcefmaven/jcefsampleapp and it works well, but why doesn't it work in my javafx application?

Does anyone know how to solve the problem?

0

There are 0 best solutions below