Disabling Web Security

Having problems with building or using the JCEF Java binding? Ask your questions here.

Disabling Web Security

Postby bluechips23 » Tue Oct 06, 2015 3:42 pm

Within in my private domain, I want to connect to a WebSocket server running on localhost. In other words, I am trying to go from https://www.myprivatedomain.com to just ws://localhost:

Right now, with JCEF, I am getting the following error as usual:
[blocked] The page at 'https://www.myprivatedomain.com' was loaded over HTTPS, but ran insecure content from 'ws://localhost': this content should also be loaded over HTTPS.


I tried disabling web security using the following piece of code:

Code: Select all
CefSettings settings  = new CefSettings();
settings.ignore_certificate_errors = true;
settings.cache_path = "<linktoabsolutecachepath>";
settings.log_file = "<mylogfile>";

String[] disableWebSecurity = {"--disable-web-security"};
CefApp.getInstance(disableWebSecurity, settings);


However, I am still getting the same error. So my questions are as follows:
    1. Is there something else am I missing?
    2. Is there a way to print all the settings and arguments that my instance is launched with?

As a note - I will be using JCEF ONLY within my own private domain - this is not going to be publicly released, so I am not worried about security as it won't access any public URLs.
bluechips23
Techie
 
Posts: 12
Joined: Tue Nov 11, 2014 10:58 am

Re: Disabling Web Security

Postby magreenblatt » Tue Oct 06, 2015 4:16 pm

You probably need the `allow-running-insecure-content` flag which is not currently supported by CEF. See https://bitbucket.org/chromiumembedded/cef/issues/1501.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 114 guests