Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate error Webview #1

Open
vsanse opened this issue Aug 24, 2019 · 0 comments
Open

Certificate error Webview #1

vsanse opened this issue Aug 24, 2019 · 0 comments

Comments

@vsanse
Copy link

vsanse commented Aug 24, 2019

Hi @Evoks ,
I was referring issue raised by you : electron/electron#15709
I am getting same issue while using webview to launch a url with certificate error but it keeps firing certicate-error event whitout whitelisting it. Please help, here is code and error:

 webview.getWebContents() .on( "certificate-error", (event, url, error, certificate, callback) => {
                        event.preventDefault();
                        console.log(event, url, error, certificate);
                        callback(true);
                    }
                );

Error

 {} "https://self-signed.badssl.com/" "net::ERR_CERT_AUTHORITY_INVALID" {…}
{} "https://self-signed.badssl.com/" "net::ERR_CERT_AUTHORITY_INVALID" {…}
Uncaught Error: Could not call remote function 'bound '. Check that the function signature is correct. Underlying error: callback can only be called for once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant