mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Add support for CefRequestHandler::OnCertificateError (see issue #3148)
This commit is contained in:
@ -977,9 +977,10 @@ bool ClientHandler::OnCertificateError(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefCallback> callback) {
|
||||
CEF_REQUIRE_UI_THREAD();
|
||||
|
||||
if (cert_error == ERR_CERT_AUTHORITY_INVALID &&
|
||||
request_url.ToString().find("https://www.magpcss.org/") == 0U) {
|
||||
// Allow the CEF Forum to load. It has a self-signed certificate.
|
||||
if (cert_error == ERR_CERT_COMMON_NAME_INVALID &&
|
||||
request_url.ToString().find("https://www.magpcss.com/") == 0U) {
|
||||
// Allow magpcss.com to load despite having a certificate common name of
|
||||
// magpcss.org.
|
||||
callback->Continue();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user